简体   繁体   English

从 Google 表格打印图表

[英]Print chart from Google Sheets

Is there a way to print a chart from Google Sheet with code?有没有办法用代码从谷歌表格中打印图表?

Neatly without other objects, just one graph, one page.整齐地没有其他物体,只有一张图,一页。 And with prepared printing settings.并带有准备好的打印设置。

I've tried different ways, they don't work.我尝试了不同的方法,它们不起作用。 I tried templated html with Javascript window.print() method and it processes only current window (the sidebar + all buttons etc.) It just opens printing settings page.我用 Javascript window.print()方法尝试了模板化 html,它只处理当前窗口(边栏 + 所有按钮等)它只是打开打印设置页面。

My chart is Embedded chart type but if I need to change its type it's ok.我的图表是嵌入式图表类型,但如果我需要更改其类型,没关系。

I'd like to have printing settings page with all needed settings chosen (or even start printing) by the button click.我希望通过单击按钮选择所有需要的设置(甚至开始打印)的打印设置页面。

Right click on the three dots in the top right of the chart.右键单击图表右上角的三个点。 Click "Download", choose pdf.点击“下载”,选择pdf。 Save the PDF and print that.保存 PDF 并打印。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM