public class SheetPrintingPreview
extends java.lang.Object
| Constructor and Description |
|---|
SheetPrintingPreview(Worksheet sheet,
ImageOrPrintOptions options)
The construct of SheetPrintingPreview
|
| Modifier and Type | Method and Description |
|---|---|
int |
getEvaluatedPageCount()
Evaluate the total page count of this worksheet
|
public SheetPrintingPreview(Worksheet sheet, ImageOrPrintOptions options)
sheet - Indicate which spreadsheet 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 worksheet.
Workbook workbook = new Workbook("Book1.xlsx");
SheetPrintingPreview sheetPrintingPreview = new SheetPrintingPreview(workbook.getWorksheets().get(0), new ImageOrPrintOptions());
//fastest way to get page count especailly when there are massive data in worksheet.
System.out.println(sheetPrintingPreview.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.