Skip to main content
All docs
V25.1
  • 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.1.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