GoDiagram Win Reference
PrintShowDialog Method

a PrintDocument that may be modified
Display a printing choices dialog.
Syntax
'Declaration
 
Protected Overridable Function PrintShowDialog( _
   ByVal pd As PrintDocument _
) As DialogResult
protected virtual DialogResult PrintShowDialog( 
   PrintDocument pd
)

Parameters

pd
a PrintDocument that may be modified

Return Value

a DialogResult; any value other than DialogResult.Cancel will start the process of printing this document
Remarks
You could override this method to always return DialogResult.OK if you don't want to display any PrintDialog. Or, in order to have the printing orientation default to landscape, with no margins, you could override this method as follows: protected override DialogResult PrintShowDialog(PrintDocument pd) { pd.DefaultPageSettings.Landscape = true; pd.DefaultPageSettings.Margins = new Margins(0, 0, 0, 0); return base.PrintShowDialog(pd); }
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

GoView Class
GoView Members
PrintPreviewShowDialog Method

 

 


© 2015. Northwoods Software Corporation. All Rights Reserved.

Send Feedback