Aspose::Cells::Rendering::SheetPrintingPreview::GetEvaluatedPageCount method

SheetPrintingPreview::GetEvaluatedPageCount method

Evaluate the total page count of this worksheet.

int32_t Aspose::Cells::Rendering::SheetPrintingPreview::GetEvaluatedPageCount()

Examples

Aspose::Cells::Startup();
//The following code shows the fastest way to get page count of a worksheet.
Workbook workbook(u"Book1.xlsx");

SheetPrintingPreview sheetPrintingPreview(workbook.GetWorksheets().Get(0), ImageOrPrintOptions());

//fastest way to get page count especailly when there are massive data in worksheet.
int pageCount = sheetPrintingPreview.GetEvaluatedPageCount();

Aspose::Cells::Cleanup();

See Also