PrintPreviewExt Method
Description
Runs print preview in non-maximized mode with given screen position and size.
Syntax
Public Sub PrintPreviewExt( _
ByVal ShowPrintDialog As Boolean, _
ByVal xLeft As Integer, _
ByVal yTop As Integer, _
ByVal xRight As Integer, _
ByVal yBottom As Integer _
)
Parameters
- ShowPrintDialog: True to show print preview dialog before displaying.
- xLeft: The x-coordinate of the Print Preview window's left edge in pixels.
- yTop: The y-coordinate of the Print Preview window's top edge in pixels.
- xRight: The width of the Print Preview window in pixels.
- yBottom: The height of the Print Preview window in pixels.
Remarks
You have the option to pass the position and size of the print preview window instead of always using maximized. Maximized is the default size.
See Also
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.