evaluated_page_count 属性

evaluated_page_count 属性

评估此工作表的总页数

例子

以下代码显示了获取工作表页数的最快方法。

from aspose.cells import Workbook
from aspose.cells.rendering import ImageOrPrintOptions, SheetPrintingPreview

workbook = Workbook("Book1.xlsx")
sheetPrintingPreview = SheetPrintingPreview(workbook.worksheets[0], ImageOrPrintOptions())
# fastest way to get page count especailly when there are massive data in worksheet.
print(sheetPrintingPreview.evaluated_page_count)

定义:

@property
def evaluated_page_count(self):
    ...

也可以看看