officefileapi-devexpress-dot-barcodes-82c1f9ab.md
Contains options specific to the EPC QR Code symbology.
Namespace : DevExpress.BarCodes
Assembly : DevExpress.Docs.v25.2.dll
NuGet Package : DevExpress.Document.Processor
public class QRCodeEPCOptions :
QRCodeOptions
Public Class QRCodeEPCOptions
Inherits QRCodeOptions
The following members return QRCodeEPCOptions objects:
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 });
Imports Microsoft.VisualBasic
Imports DevExpress.BarCodes
Imports DevExpress.Drawing
Imports DevExpress.XtraPrinting.BarCode
Imports System.Diagnostics
Imports System.Drawing
Imports System.Text
' Create an EPC QR code.
Private barCode As New BarCode()
barCode.Symbology = Symbology.QRCodeEPC
barCode.CodeText = "BCD" & vbCrLf & "001" & vbCrLf & "1" & vbCrLf & "SCT" & vbCrLf & "BPOTBEB1" & vbCrLf & "Red Cross of Belgium" & vbCrLf & "BE72000000001616" & vbCrLf & "EUR1" & vbCrLf & "CHAR" & vbCrLf & vbCrLf & "Urgency fund" & vbCrLf & "Sample 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") With {.UseShellExecute = True})
Object BarCodeGeneratorOptions QRCodeOptions QRCodeEPCOptions
See Also