Aspose::Cells::Rendering::WorkbookPrintingPreview::GetEvaluatedPageCount method
WorkbookPrintingPreview::GetEvaluatedPageCount method
Evaluate the total page count of this workbook.
int32_t Aspose::Cells::Rendering::WorkbookPrintingPreview::GetEvaluatedPageCount()
Examples
Aspose::Cells::Startup();
//The following code shows the fastest way to get page count of a workbook.
Workbook workbook(u"Book1.xlsx");
WorkbookPrintingPreview workbookPrintingPreview(workbook, ImageOrPrintOptions());
//fastest way to get page count especailly when there are massive data in workbook.
int pageCount = workbookPrintingPreview.GetEvaluatedPageCount();
Aspose::Cells::Cleanup();
See Also
- Class Vector
- Class WorkbookPrintingPreview
- Namespace Aspose::Cells::Rendering
- Library Aspose.Cells for C++