如何使用SuiteScript 2.0创建EXCEL和WORD文件?

问题描述 投票:0回答:1

我正在使用HTML Suitelet创建Word和Excel,可以创建CSV和PDF文件,但是无法创建Word或Excel。我该怎么办?

file.create({name:'testinvoice.pdf',fileType:file.Type.PDF, contents:pdffile.getContents()});
javascript netsuite suitescript
1个回答
0
投票

查看文件。在帮助中心输入枚举。 file.Type.WORD和file.Type.EXCEL均受支持,但您的file.Create可能会失败,因为可能未创建内容。我认为此堆栈溢出问题将有助于创建XLS文件:Create Excel File in NetSuite's SuiteScript

© www.soinside.com 2019 - 2024. All rights reserved.