如何获得笔记或评论 [英] How to get a note or comment
问题描述
我有一个包含单元格注释/备注的Excel,我已将其上传到Google云端硬盘,并将其转换为Google电子表格。我如何检索单元格A1的评论?
Google Apps Spreadsheet API仅提供对电子表格数据的编程式访问。您无法使用API访问评论。
您可以使用Google Apps脚本获取单元格或单元格区域的Notes。这些方法请参阅类范围文档:
- getNote() - 返回与给定单元格关联的注释。
- getNotes()该范围内的单元格。
有关此功能的未解决问题主要涉及注释(其他注释类型) 。请参阅问题1818 和 Issue 2566
在对您的问题发表评论时,SGC询问您是否查看了 developers.google.com/drive/v2/reference/comments/get 和 developers.google.com/drive/v2/reference/comments/list ;这些是FILE级别的注释,而不是附加到电子表格单元格的注释。
I have an Excel containing cell comments/notes, I've uploaded it to Google Drive, and converted it into a Google Spreadsheet. How may I retrieve the comments for cell A1?
The API doesn't describe how to get a note or comment from a cell.
The Google Apps Spreadsheet API only provides programmatic access to spreadsheet data. You cannot access comments using the API.
You can get the Notes for a cell or range of cells using Google Apps Script. See the Class Range documentation for these methods:
- getNote() - Returns the note associated with the given cell.
- getNotes() - Returns the notes associated with the cells in the range.
There are open issues related to this functionality, mainly concerning comments (the "other" type of note). See Issue 1818 and Issue 2566
In a comment on your question, SGC asks if you've looked at developers.google.com/drive/v2/reference/comments/get and developers.google.com/drive/v2/reference/comments/list; these are FILE level comments, not the comments attached to a spreadsheet cell.
这篇关于如何获得笔记或评论的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!