在谷歌应用程序脚本中,您可以使用 insertImage
函数( https://developers.google.com/apps-script/reference/spreadsheet/sheet#insertimageblob-column-row )将图像插入到 Google 电子表格中。
但我没有使用 appscript。我正在使用 Google Sheets API ( https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets ),但我似乎无法找到执行此操作的方法。有没有可能的实施?
原文由 dedles 发布,翻译遵循 CC BY-SA 4.0 许可协议
V4 API 无法像 Apps 脚本那样插入图像 blob(其中图像是工作表上的叠加层,不与任何单元格相关联)。您可以使用 =IMAGE 函数解决此问题。我们知道功能上的差距,并且正在研究添加对图像 blob 的支持。