Back to Devexpress

XRBarCode.TargetDeviceDpi Property

xtrareports-devexpress-dot-xtrareports-dot-ui-dot-xrbarcode-d6e884b5.md

latest2.0 KB
Original Source

XRBarCode.TargetDeviceDpi Property

Specifies the DPI of the device on which the barcode is to be printed.

Namespace : DevExpress.XtraReports.UI

Assembly : DevExpress.XtraReports.v25.2.dll

NuGet Package : DevExpress.Reporting.Core

Declaration

csharp
[DefaultValue(null)]
[SRCategory(ReportStringId.CatBehavior)]
public int? TargetDeviceDpi { get; set; }
vb
<DefaultValue(Nothing)>
<SRCategory(ReportStringId.CatBehavior)>
Public Property TargetDeviceDpi As Integer?

Property Value

TypeDefaultDescription
Nullable<Int32>null

A DPI value of the target device.

|

Remarks

The XRBarCode adjusts bar density according to the value specified in the TargetDeviceDpi property. It allows you to ensure the barcode is scanned correctly on target devices, including devices with non-standard DPI settings.

The Alignment property is ignored if the AutoModule property is enabled and the TargetDeviceDpi property is set. If you want the Alignment property to work correctly, disable the AutoModule property or reset the TargetDeviceDpi property.

See Also

XRBarCode Class

XRBarCode Members

DevExpress.XtraReports.UI Namespace