All docs
V21.1
21.2 (EAP/Beta)
21.1
20.2
The page you are viewing does not exist in version 20.2. This link will take you to the root page.
20.1
The page you are viewing does not exist in version 20.1. This link will take you to the root page.
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

DeutschePostIdentcodeGenerator Class

Generates a visual representation of the Deutsche Post Identcode barcode.

Namespace: DevExpress.XtraPrinting.BarCode

Assembly: DevExpress.Printing.v21.1.Core.dll

Declaration

public class DeutschePostIdentcodeGenerator :
    DeutschePostGenerator

Remarks

The Deutsche Post Identcode symbology, also referred to as Deutsche Post AG IdentCode, German Postal 2 of 5 IdentCode, Deutsche Frachtpost IdentCode, or Deutsche Post AG (DHL), is used by German Post (Deutsche Post AG).

Identcode barcode

The barcode contains a tracking number that identifies a customer (sender) and a mail item. A value that the barcode encodes should consist of 11 or 12 digits:

  • 2 digits for a distribution center ID;
  • 3 digits for a customer ID;
  • 6 digits for a mailing number;
  • 1 digit for a checksum (optional).

When you specify 11 digits, the barcode generates a checksum digit automatically. If you add a checksum digit, the barcode ignores this digit and also generates it automatically to ensure the encoded value is valid.

Example

The following code example creates the Deutsche Post Identcode barcode and specifies its properties.

View Example: How to add a bar code to a report

using DevExpress.XtraPrinting.BarCode;
using DevExpress.XtraReports.UI;
//...

public XRBarCode CreateDeutschePostIdentcodeBarCode(string barcodeText) {
    // Create a XRBarCode control.
    var barcode = new XRBarCode();

    // Set the barcode's symbology to the DeutschePostIdentcode.
    barcode.Symbology = new DeutschePostIdentcodeGenerator();

    // Adjust the barcode's appearance.
    barcode.Text = barcodeText;
    barcode.Height = 100;
    barcode.Width = 300;

    return barcode;
}

The code example below shows how to create a report with the Deutsche Post Identcode barcode:

using DevExpress.XtraPrinting.BarCode;
using DevExpress.XtraReports.UI;
//...

var barcode = CreateDeutschePostIdentcodeBarCode("01234567890");

var report = new XtraReport() {
    Bands = {
        new DetailBand() {
            Controls = { barcode }
        }
    }
};

Inheritance

Object
DevExpress.Printing.Utils.DocumentStoring.StorableObjectBase
BarCodeGeneratorBase
Interleaved2of5Generator
DevExpress.XtraPrinting.BarCode.DeutschePostGenerator
DeutschePostIdentcodeGenerator
See Also