This property sets or returns a value which indicates the state of the PrintPreview window.
WindowState [ = vWindowState As WindowStateType ] As Integer
The vWindowState parameter can contain the following values:
Constant Value Description
prNormal 0 Normal state
prMinimized 1 Minimized state
prMaximised 2 Maximize stateRemarks:
This property determines the way in which the preview window will be displayed.
Normally the value of the property is used when the preview window is created and if the window is Modal then the application cannot change this state nor read the property. However, if Modal = False then the property can be read or changed as required.
The state of the preview window can be changed by the user while it is displayed, using the standard button at the top right of the window.
To maximize the preview window:
Preview.WindowState = prMaximized
Come and visit :