GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoView Class / PrintShowDialog Method
a PrintDocument that may be modified
Example
In This Topic
    PrintShowDialog Method
    In This Topic
    Display a printing choices dialog.
    Syntax
    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:
    Example
    protected override DialogResult PrintShowDialog(PrintDocument pd) {
      pd.DefaultPageSettings.Landscape = true;
      pd.DefaultPageSettings.Margins = new Margins(0, 0, 0, 0);
      return base.PrintShowDialog(pd);
    }
    See Also