如何使用 SuiteScript 2.0 创建 EXCEL 和 WORD 文件?
How to create EXCEL and WORD file using SuiteScript 2.0?
我正在使用 HTML Suitelet 创建 Word 和 Excel,我可以创建 CSV 和 PDF 文件,但无法创建 Word 或 Excel。我该怎么做?
file.create({name:'testinvoice.pdf',fileType:file.Type.PDF, contents:pdffile.getContents()});
查看帮助中心的 file.Type 枚举。 file.Type.WORD 和 file.Type.EXCEL 均受支持,但您的 file.Create 可能会失败,因为可能无法创建内容。我认为这个堆栈溢出问题将有助于创建 XLS 文件:Create Excel File in NetSuite's SuiteScript
我正在使用 HTML Suitelet 创建 Word 和 Excel,我可以创建 CSV 和 PDF 文件,但无法创建 Word 或 Excel。我该怎么做?
file.create({name:'testinvoice.pdf',fileType:file.Type.PDF, contents:pdffile.getContents()});
查看帮助中心的 file.Type 枚举。 file.Type.WORD 和 file.Type.EXCEL 均受支持,但您的 file.Create 可能会失败,因为可能无法创建内容。我认为这个堆栈溢出问题将有助于创建 XLS 文件:Create Excel File in NetSuite's SuiteScript