XlsxSectionMode enumeration

XlsxSectionMode enumeration

Specifies how sections are handled when saving a document in the XLSX format.

Members

NameDescription
MULTIPLE_WORKSHEETSSpecifies that a separate worksheet is created for each section of a document.
SINGLE_WORKSHEETSpecifies 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