Control Reference > VSPrinter Control > VSPrinter Events > BeforeUserPage Event |
Fired before switching preview pages in response to a user request.
Private Sub VSPrinter_BeforeUserPage(NewPage As Integer)
The page may be switched using the built-in navigation bar, mouse, mouse wheel, or keyboard, depending on the setting of the NavBar and Navigation properties.
You may change the value of the NewPage parameter to switch to a specific page. If you set NewPage to PreviewPage, the switch is canceled.