RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TPrinter.PageNumber Property

Indicates the number of the page currently printing.

Pascal
property PageNumber: Integer;
C++
__property int PageNumber;

Use PageNumber to find the page number of the currently printing page. 

PageNumber is incremented whenever the NewPage method is called. It is also incremented when a Text variable is written and a CR is encountered on the last line of the page. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!