Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/user-interface/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Forms 将Google应用程序脚本GUI表单另存为图像_Forms_User Interface_Google Apps Script - Fatal编程技术网

Forms 将Google应用程序脚本GUI表单另存为图像

Forms 将Google应用程序脚本GUI表单另存为图像,forms,user-interface,google-apps-script,Forms,User Interface,Google Apps Script,我正在Goolge电子表格上与google apps acript合作,创建一个简单的树对象作为GUI function doGet(e) { var app = UiApp.createApplication().setTitle("A").setWidth('1000').setHeight('600'); var tree = app.createTree().setAnimationEnabled(true); var item = app.createTreeItem

我正在Goolge电子表格上与google apps acript合作,创建一个简单的树对象作为GUI

function doGet(e) {

  var app = UiApp.createApplication().setTitle("A").setWidth('1000').setHeight('600');
  var tree = app.createTree().setAnimationEnabled(true);

   var item = app.createTreeItem("B");
   tree.addItem(item);

  var scrollPanel = app.createScrollPanel().setSize('980', '580').setStyleAttribute('border', '1px solid black');
  scrollPanel.add(tree);
  app.add(scrollPanel);

  var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
  spreadsheet.show(app);
}  
我想把这个GUI保存为一个图像(png,jpg,pdf…),这样我就可以把它放到一个报告中

我还想在电子表格中嵌入GUI,以便能够打印它

有人能帮我吗

我知道这可能看起来是一个奇怪的请求,但我正在尝试使用GUI树对象创建一种非常特殊的图形,它在图形对象中没有对应项

使用创建一个文档,并将项目放置在此文档中,然后如果需要,可以将其显示为pdf。也来看看。