PrintDocument for WinForms | ComponentOne
C1.Win.PrintPreview.4.5.2 Assembly / C1.Win.C1Preview.Design Namespace / SampleC1PrintDocument Class / CreationDevice Property

In This Topic
    CreationDevice Property (SampleC1PrintDocument)
    In This Topic
    Gets or sets the type of device that is used to provide reference graphics when generating the document. If this property is set to C1.C1Preview.MeasurementDeviceEnum.Printer, C1.C1Preview.C1PrintDocument.CreationPrinterName specifies the printer.
    Syntax
    'Declaration
     
    Public Property CreationDevice As MeasurementDeviceEnum
    public MeasurementDeviceEnum CreationDevice {get; set;}
    Remarks

    The default behavior determining which reference device should be used when rendering a C1.C1Preview.C1PrintDocument is specified by static properties C1.C1Preview.C1PrintDocument.MeasurementDevice and C1.C1Preview.C1PrintDocument.MeasurementPrinterName. The (non-static) C1.C1Preview.C1PrintDocument.CreationDevice, C1.C1Preview.C1PrintDocument.CreationPrinterName and C1.C1Preview.C1PrintDocument.CreationDpi properties allow to override the behavior for an individual component.

    Normally all installed printers would be scanned to obtain a high-resolution reference System.Drawing.Graphics object. In order to bypass this process, set this property to C1.C1Preview.MeasurementDeviceEnum.Screen. In some cases this may increase rendering speed at the cost of some loss in layout accuracy.

    See Also