Skip to main content
All docs
V26.1
  • QRCodeEPCOptions Class

    Contains options specific to the EPC QR Code symbology.

    Namespace: DevExpress.BarCodes

    Assembly: DevExpress.Docs.v26.1.dll

    Declaration

    public class QRCodeEPCOptions :
        QRCodeOptions

    The following members return QRCodeEPCOptions objects:

    Remarks

    Note

    This documentation describes the legacy Barcode Generation API. For new projects, use the DevExpress.Docs.Barcode.BarcodeGenerator class in the DevExpress.Docs.Barcode namespace. To upgrade an existing project to the updated scheduler control, refer to the Migration Guide.

    Access the QRCodeEPCOptions object with the QRCodeEPC property.

    The following code snippet creates an EPC QR code with the “Zahlen mit Code” frame:

    using DevExpress.BarCodes;
    using DevExpress.Drawing;
    using DevExpress.XtraPrinting.BarCode;
    using System.Diagnostics;
    using System.Drawing;
    using System.Text;
    
    // Create an EPC QR code.
    BarCode barCode = new BarCode();
    barCode.Symbology = Symbology.QRCodeEPC;
    barCode.CodeText = "BCD\r\n001\r\n1\r\nSCT\r\nBPOTBEB1\r\nRed Cross of Belgium\r\nBE72000000001616\r\nEUR1\r\nCHAR\r\n\r\nUrgency fund\r\nSample EPC QR code";
    barCode.BackColor = Color.White;
    barCode.ForeColor = Color.Black;
    barCode.CodeBinaryData = Encoding.Default.GetBytes(barCode.CodeText);
    barCode.DpiX = 72;
    barCode.DpiY = 72;
    barCode.Module = 2f;
    
    // Save the barcode as an image.
    barCode.Save("BarCodeImage.png", DXImageFormat.Png);
    // Open the image in the default viewer.
    Process.Start(new ProcessStartInfo("BarCodeImage.png") { UseShellExecute = true });
    

    Inheritance

    See Also