Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

XRBarCode.TargetDeviceDpi Property

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

Namespace: DevExpress.XtraReports.UI

Assembly: DevExpress.XtraReports.v24.2.dll

NuGet Package: DevExpress.Reporting.Core

#Declaration

[DefaultValue(null)]
[SRCategory(ReportStringId.CatBehavior)]
public int? TargetDeviceDpi { get; set; }

#Property Value

Type Default Description
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