谷歌应用脚​​本打印按钮 [英] google app script print button

查看:63
本文介绍了谷歌应用脚​​本打印按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在进行一个月的调查(这是我的第一个谷歌脚本项目,同时我应该提及它是一个基于Web的应用程序),而我只剩下几件事情要做(创建一个打印按钮就是其中之一)。在我继续之前,我会给你一些关于调查的信息。有6页(每页对应一个按钮 - 我使用的是按钮而不是菜单,因为我最近发现它......),一次只能查看1页。



问题是我需要创建打印按钮...它将打印所有页面。



我一直在寻找对于大约3-4天的谷歌脚本示例,现在我找不到任何东西......如果我没有说清楚,请告诉我,我会尽力给出更多详细信息。



Dave

解决方案

我猜你知道Google Apps Script应用程序无法打印因为它在Google服务器上运行,而不是在您的计算机上运行,​​所以应用程序内部的任
电子表格和文档在他们自己的环境中集成了一个打印实用程序,但是使用GAS开发的webapps(和网站)没有这个环境。



按钮'可能可能会创建一个PDF文档,您将能够轻松打印。

I've been working on a survey for about a month now(this is my first google script project, also I should mention that it's a web based app), and I only have a few things left to do(Creating a print button is one of them). Before I go on, I will give you some info about the survey. There are 6 pages(Each page corresponds to a button-I'm using buttons instead of the menu because I found out about it recently...) and only 1 page can be viewed at a time.

The problem is that I need to create the print button...which will print all of the pages.

I've been looking for a google script example for about 3-4 days now and I can't find anything...If I didn't make it clear enough please let me know and I will try to give more details..

Dave

解决方案

I guess you know that Google Apps Script applications have no way to print anything from inside your application since it runs on Google servers and not on you computer. Spreadsheets and documents integrate a print utility in their own environment but webapps (and sites) you develop with GAS don't have this environment.

Your 'print button' could probably create a pdf document that you'll be able to print easily.

这篇关于谷歌应用脚​​本打印按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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