FlexGrid for WinForms
PrintPreviewDialog Property
Example 



Gets a reference to the PrintPreviewDialog used to display the grid's print preview.
Syntax
'Declaration
 
Public ReadOnly Property PrintPreviewDialog As PrintPreviewDialog
'Usage
 
Dim instance As GridPrinter
Dim value As PrintPreviewDialog
 
value = instance.PrintPreviewDialog
public PrintPreviewDialog PrintPreviewDialog {get;}
public:
property PrintPreviewDialog^ PrintPreviewDialog {
   PrintPreviewDialog^ get();
}
Remarks
Use this property to customize the size and position of the preview dialog when printing the grid with the PrintGridFlags.ShowPrintDialog option.
Example
The code below uses the PrintPreviewDialog property to display the preview dialog with a custom caption and in a maximized state:
Form dlg = _flex.PrintParameters.PrintPreviewDialog as Form;
dlg.Text = "Custom Caption";
dlg.StartPosition = FormStartPosition.Manual;
dlg.WindowState = FormWindowState.Maximized;
_flex.PrintGrid("test", PrintGridFlags.ShowPreviewDialog);
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

GridPrinter Class
GridPrinter Members

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Send Feedback