Aspose::Cells::PaginatedSaveOptions::GetSheetSet method

PaginatedSaveOptions::GetSheetSet method

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

SheetSet Aspose::Cells::PaginatedSaveOptions::GetSheetSet()

Examples

Aspose::Cells::Startup();
//The following code only renders active sheet to pdf.
Workbook workbook(u"Book1.xlsx");

int activeSheetIndex = workbook.GetWorksheets().GetActiveSheetIndex();

PdfSaveOptions pdfSaveOptions;
//set active sheet index to sheet set.
SheetSet sheetSet = pdfSaveOptions.GetSheetSet();
if(!sheetSet.IsNull())
{
    //do what you want
}
workbook.Save(u"output.pdf", pdfSaveOptions);
Aspose::Cells::Cleanup();

See Also