section_mode property

XlsxSaveOptions.section_mode property

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

@property
def section_mode(self) -> aspose.words.saving.XlsxSectionMode:
    ...

@section_mode.setter
def section_mode(self, value: aspose.words.saving.XlsxSectionMode):
    ...

Examples

Shows how to save document as a separate worksheets.

doc = Document(MY_DIR + "Big document.docx")

# Each section of a document will be created as a separate worksheet.
# Use 'SingleWorksheet' to display all document on one worksheet.

xlsx_save_options = XlsxSaveOptions()
xlsx_save_options.section_mode = XlsxSectionMode.MULTIPLE_WORKSHEETS

doc.save(ARTIFACTS_DIR + "XlsxSaveOptions.SelectionMode.xlsx", xlsx_save_options)

See Also