使用Google Script,如何将图像插入表格单元格? [英] Using Google Script, how can I insert an image into a table cell?

查看:1048
本文介绍了使用Google Script,如何将图像插入表格单元格?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已成功找出如何使用下面的答案附加图片,但我需要更进一步。

I have been successful in figuring out how to append an image using the answer below but I need to take it one step further.

https://stackoverflow.com/a/7970134/1208721

使用Google Script in应用程序,您如何专门引用谷歌文档中的表格中的单元格并将图像附加到那里?我似乎无法正确使用语法。

Using Google Script in Apps, how do you specifically reference a cell in a table on a google doc and append the image there? I cannot seem to get the syntax right.

谢谢!
Nate

Thanks! Nate

推荐答案

只需将单元格公式设置为:

Just set the cell formula to this one:

=Image("http://www.cardinalpath.com/cpwp/wp-content/themes/cardinalpath/images/cp_logo.png")

如果您想将此图片链接到某处,您甚至可以这样做:

If you want this image to link somewhere you can even do this:

=HYPERLINK("http://www.cardinalpath.com/",Image("http://www.cardinalpath.com/cpwp/wp-content/themes/cardinalpath/images/cp_logo.png"))

这篇关于使用Google Script,如何将图像插入表格单元格?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆