sectionMode property

XlsxSaveOptions.sectionMode property

Gets or sets the way how sections are handled when saving to the output XLSX document. The default value is XlsxSectionMode.MultipleWorksheets.

get sectionMode(): Aspose.Words.Saving.XlsxSectionMode

Examples

Shows how to save document as a separate worksheets.

let doc = new aw.Document(base.myDir + "Big document.docx");

// Each section of a document will be created as a separate worksheet.
// Use 'SingleWorksheet' to display all document on one worksheet.
let xlsxSaveOptions = new aw.Saving.XlsxSaveOptions();
xlsxSaveOptions.sectionMode = aw.Saving.XlsxSectionMode.MultipleWorksheets;

doc.save(base.artifactsDir + "XlsxSaveOptions.SelectionMode.xlsx", xlsxSaveOptions);

See Also