Selects a device to use for MeasurementGraphics. This method looks for a printer with a "square" resolution (i.e. with the same horizontal and vertical DPI) equal to or larger than 300 DPI. If such a printer is found, it is assigned to MeasurementPrinterName, and MeasurementDevice is set to Printer. Otherwise, MeasurementDevice is set to Screen. The selected device's resolution is returned by MeasurementDpi.

Namespace:  C1.C1Preview
Assembly:  C1.C1Report.2 (in C1.C1Report.2.dll)

Syntax

C#
public static void SelectBestMeasurementDevice()
Visual Basic
Public Shared Sub SelectBestMeasurementDevice

See Also