我可以通过Google表格脚本生成文件吗? [英] Can I generate a file from Google Sheets script?

查看:85
本文介绍了我可以通过Google表格脚本生成文件吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Google表格为我正在做的事情创建一堆数字数据的原型.

I'm using Google Sheets to prototype a bunch of numerical data for something I'm doing.

是否可以将子集导出到文本文件?

Is there a way to export a subset to a text file?

有效地,我的目标是导出一个文件,该文件可以直接包含在另一个项目的构建中.

Effectively, what I'm aiming to do is export a file I can include directly in the build for another project.

有没有一种方法可以生成文本文件进行下载?

So is there a way to generate a text file for download?

推荐答案

如果您拥有Google Apps帐户,则可以使用

If you have a Google Apps account, then you can use DocsList.createFile() to create the text file and save it in your documents list.

教程的第3部分显示了如何保存电子表格的选定范围作为CSV格式的文档列表中的文件.可以很容易地对其进行修改以保存为其他格式.

Section 3 of this tutorial shows how to save the selected range of a spreadsheet as a file in your documents list in CSV format. It could be modified pretty easily to save in a different format.

这篇关于我可以通过Google表格脚本生成文件吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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