Northwoods.Go Assembly > Northwoods.Go Namespace > GoView Class : PrintShowDialog Method |
PrintDocument
that may be modified
'Declaration Protected Overridable Function PrintShowDialog( _ ByVal pd As PrintDocument _ ) As DialogResult
protected virtual DialogResult PrintShowDialog( PrintDocument pd )
PrintDocument
that may be modifiedDialogResult
; any value other than DialogResult.Cancel
will start the process of printing this documentDialogResult.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); }
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