我尝试在具有以下代码的用户界面中显示图像(位于我的Google云端硬盘帐户并打开链接以查看包含该链接的所有人):
var app = UiApp.createApplication().setHeight(150).setWidth(250);
var msg = "Suas configurações foram salvas. ;-) ";
app.setTitle("Deu certo!");
app.add(app.createVerticalPanel().add(app.createLabel(msg)));
app.add(app.createImage("https://drive.google.com/file/d/0B6ItQgqkEUm8VVhwUTBUMkc3a1E/edit?usp=sharing"));
var doc = SpreadsheetApp.getActive();
doc.show(app);
但它没有用(图像没有显示):
答案 0 :(得分:1)
https://googledrive.com/host/PUBLIC_FOLDER_ID/FILE_NAME
图片及其文件夹需要在网络上公开分享。