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 = aw.Document(file_name=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 = aw.saving.XlsxSaveOptions()
xlsx_save_options.section_mode = aw.saving.XlsxSectionMode.MULTIPLE_WORKSHEETS
doc.save(file_name=ARTIFACTS_DIR + 'XlsxSaveOptions.SelectionMode.xlsx', save_options=xlsx_save_options)

See Also