sheet_set property

sheet_set property

Gets or sets the sheets to render. Default is all visible sheets in the workbook: SheetSet.visible.

Example

The following code only renders active sheet to pdf.

from aspose.cells import PdfSaveOptions, Workbook
from aspose.cells.rendering import SheetSet

workbook = Workbook("Book1.xlsx")
activeSheetIndex = workbook.worksheets.active_sheet_index
pdfSaveOptions = PdfSaveOptions()
# set active sheet index to sheet set.
pdfSaveOptions.sheet_set = SheetSet([activeSheetIndex])
workbook.save("output.pdf", pdfSaveOptions)

Definition:

@property
def sheet_set(self):
    ...
@sheet_set.setter
def sheet_set(self, value):
    ...

See Also