FlexCel Studio for VCL/LCL
ContentsIndex
PreviousUpNext
TFlexCelGrid.CalcNumberOfPrintingPages Method (integer)

Calculates the number of pages that will be printed.

Pascal
procedure CalcNumberOfPrintingPages(var PageCount: integer); overload;
C++
__fastcall CalcNumberOfPrintingPages(int PageCount);
Parameters 
Description 
var PageCount: integer 
Returns the number of pages that will be printed, taking in account page breaks, margins, printer settings, etc. 

Use this method for showing the amount of pages to print to the user. As it can take some time to calculate, if you are going to use this value more than once it is good to call this function at the beginning and assign it to a variable. 

 

Copyright (c) 2002-2008 TMS Software. All rights reserved.
What do you think about this topic? Send feedback!