Specifies whether the component should use the .NET printing support to obtain high-resolution graphics.

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

Syntax

C#
[DefaultValueAttribute(true)]
public bool UsePrinterResolution { get; set; }
Visual Basic
<DefaultValueAttribute(True)> _
Public Property UsePrinterResolution As Boolean
	Get
	Set

Remarks

By default, C1Report scans the installed printers in order to obtain a high-resolution reference Graphics object.

Set this property to false in order to bypass this process and use the screen resolution when generating reports. This will increase report rendering speed (in some cases) with some loss in layout accuracy.

Under certain circumstances, notably when running under Windows Services, the .NET printing support does not work correctly, and trying to enumerate the installed printers may cause memory allocation problems. In these situations, setting this property to false is necessary.

The default value for this property is True.

See Also