public class WorkbookPrintingPreview
extends java.lang.Object
| Constructor and Description |
|---|
WorkbookPrintingPreview(Workbook workbook,
ImageOrPrintOptions options)
The construct of WorkbookPrintingPreview
|
| Modifier and Type | Method and Description |
|---|---|
int |
getEvaluatedPageCount()
Evaluate the total page count of this workbook
|
public WorkbookPrintingPreview(Workbook workbook, ImageOrPrintOptions options)
workbook - Indicate which workbook to be printed.options - ImageOrPrintOptions contains some property of outputpublic int getEvaluatedPageCount()
Example
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.
System.out.println(workbookPrintingPreview.getEvaluatedPageCount());
See Also:
Aspose.Cells Documentation - the home page for the Aspose.Cells Product Documentation.
Aspose.Cells Support Forum - our preferred method of support.
We guarantee a prompt response to any inquiry!
© Aspose Pty Ltd 2003-2025. All Rights Reserved.