|
FlexCel Studio for VCL/LCL
|
Calculates the number of pages that will be printed.
procedure CalcNumberOfPrintingPages(const PrintRange: TXlsCellRange; var PageCount: integer); overload;
__fastcall CalcNumberOfPrintingPages(const TXlsCellRange PrintRange, int PageCount);
|
Parameters |
Description |
|
const PrintRange: TXlsCellRange |
Range of cells you want to print. There is other overloaded version of this method that doesn't need this parameter, and it will use the full range. |
|
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!
|