Control Reference > VSPrinter Control > VSPrinter Properties > PreviewPages Property |
Returns the number of pages displayed in the preview area.
val% = [form!]VSPrinter.PreviewPages
The number of pages previewed at a time depends on the setting of the ZoomMode property.
Most ZoomMode settings cause one page to be displayed at a time. The exceptions are settings zmTwoPages, which displays two pages side by side, and zmThumbnail, which displays as many one-inch wide pages as will fit on the control.
This property is mostly used to provide user feedback, displaying information such as "Now showing pages 1 to 7 of 23".
Integer