使用Google App脚本将XLSX文件从GDRIVE导入到电子表格
我目前正在创建一个脚本,该脚本可以导入从GDRive文件夹中存储的XLSX文件到电子表格,我可能会知道是否有人可以探索我的参考或示例,我已经在我的目的进行了一些研究,但是其中一些在CSV流程中。
I'm currently creating a script that can import xlsx file stored from gdrive folder to spreadsheet, may I know if someone have reference or sample that I can explore I've already do some research on my end but some of them are in CSV process.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
首先:这不是赠品服务。没有代码样本和具体问题,我们无济于事。
但是我有这个躺在周围让您入门。启用高级驱动服务。诀窍是首先转换为表格,然后获取数据。
Firstly: this not some giveaway service. Without a code sample and specific question we cannot help out.
But i have this laying around to get you started. Enable advanced drive services. The trick is to first convert to sheets and then get the data.
您可以尝试使用此脚本,其中Excel文件被转换为斑点,然后使用Google电子表格格式将斑点保存为另一个文件:
请注意,您还需要在Google Apps脚本的“服务”部分中启用Drive API。另外,我用于此测试案例的文件还保存在我的Google驱动器的主要目录中,而不是放置在任何文件夹中。因此,输出文件也应保存在主要的Google Drive目录中。
有关更多信息,您可以访问此网站:
You can try this script wherein the excel file is converted into a blob and then saved the blob as another file with a google spreadsheet format:
Please take note that you also need to enable the Drive API in the services section of Google Apps Script. Also, the file that I used for this test case was saved in the main directory of my google drive and not placed within any folder. Hence, the output file should also be saved in the main google drive directory as well.
For more information, you may visit this site: