EvaluatedPageCount

SheetPrintingPreview.EvaluatedPageCount property

Evaluate the total page count of this worksheet

public int EvaluatedPageCount { get; }

Examples

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

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

SheetPrintingPreview sheetPrintingPreview = new SheetPrintingPreview(workbook.Worksheets[0], new ImageOrPrintOptions());

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

See Also