Control Reference > VSPrinter Control > VSPrinter Properties > PreviewPage Property |
Returns or sets the current preview page (first page is 1).
[form!]VSPrinter.PreviewPage[ = value As Integer ]
Use this property in preview mode to determine which preview page is currently visible, or to select a page for previewing.
Valid pages range from one to PageCount. If you set the Preview property to a value less than one, it is set to one. If you set the Preview property to a value larger than PageCount, it is set to PageCount. Either way, no error is fired.
If the ZoomMode property is set to a value that causes more than one page to be displayed at once (zmTwoPages or zmThumbnail), then PreviewPage returns the number of the first page being displayed. The total number of pages displayed can be determined by reading the PreviewPages property.
Integer