WorkbookPrintingPreview.EvaluatedPageCount

WorkbookPrintingPreview.EvaluatedPageCount property

Evaluate the total page count of this workbook

public int EvaluatedPageCount { get; }

Examples

The following code shows the fastest way to get page count of a workbook.

Workbook workbook = new Workbook("Book1.xlsx");

WorkbookPrintingPreview workbookPrintingPreview = new WorkbookPrintingPreview(workbook, new ImageOrPrintOptions());

//fastest way to get page count especailly when there are massive data in workbook.
Console.WriteLine(workbookPrintingPreview.EvaluatedPageCount);
        

See Also