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

    Contains options specific to the EPC QR Code symbology.

    Namespace: DevExpress.BarCodes

    Assembly: DevExpress.Docs.v25.1.dll

    NuGet Package: DevExpress.Document.Processor

    Declaration

    public class QRCodeEPCOptions :
        QRCodeOptions

    The following members return QRCodeEPCOptions objects:

    Remarks

    Access the QRCodeEPCOptions object with the QRCodeEPC property.

    The code sample below 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