XlsxSectionMode enumeration
XlsxSectionMode enumeration
Specifies how sections are handled when saving a document in the XLSX format.
Members
Name | Description |
---|---|
MULTIPLE_WORKSHEETS | Specifies that a separate worksheet is created for each section of a document. |
SINGLE_WORKSHEET | Specifies that all sections of a document are saved on one worksheet. |
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
- module aspose.words.saving