PreviewPageOf Property
The PreviewPageOf property sets or returns a string that controls how page number information is displayed in the PrintPreview window.
PrintInfo.PreviewPageOf= string
Read/Write at run time and design time.
Property applies to PrintInfo object.
If specified, the string may contain two special substrings:
\p current page (just as in the page header/footer)
\P total number of pages
Note: If the user presses Abort while print preview pages are being rendered, the "\P" substring is evaluated as "\P?".
See Also