'Declaration Public Overloads Function ToPageSettings( _ ByVal document As C1PrintDocument, _ ByVal printerSettings As PrinterSettings _ ) As PageSettings
public PageSettings ToPageSettings( C1PrintDocument document, PrinterSettings printerSettings )
Parameters
- document
- The C1PrintDocument object providing the default units (needed if some sizes in the current object are specified in UnitTypeEnum.Default) and DPI (needed if some sizes in the current object are specified in UnitTypeEnum.Pixel). Can be null, but in that case the current object must not contain sizes specified in document default units or pixels.
- printerSettings
- A System.Drawing.Printing.PrinterSettings object used to create the resulting System.Drawing.Printing.PageSettings. If null, the default printer is used.
Return Value
The newly created System.Drawing.Printing.PageSettings object.