Back to Devexpress

EPCDataConverter.BinaryData Property

corelibraries-devexpress-dot-xtraprinting-dot-barcode-dot-epc-dot-epcdataconverter.md

latest2.4 KB
Original Source

EPCDataConverter.BinaryData Property

Gets the binary representation of the data for the EPC QR Code.

Namespace : DevExpress.XtraPrinting.BarCode.EPC

Assembly : DevExpress.Printing.v25.2.Core.dll

NuGet Package : DevExpress.Printing.Core

Declaration

csharp
public byte[] BinaryData { get; set; }
vb
Public Property BinaryData As Byte()

Property Value

TypeDescription
Byte[]

A Byte array

|

Remarks

Use the BinaryData property to pass data to the barcode’s BinaryData property:

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

XRBarCode barCode = new XRBarCode();
barCode.Symbology = new QRCodeEPCGenerator();
//...

var epcData = new EPCDataConverter() 
{
    BIC = "BPOTBEB1",
    BeneficiaryName = "Red Cross of Belgium",
    IBAN = "BE72000000001616",
    TransferAmount = 20,
    RemittanceInformation = "Urgency Fund"
};

barCode.BinaryData = epcData.BinaryData;
vb
Imports DevExpress.XtraPrinting.BarCode
Imports DevExpress.XtraPrinting.BarCode.EPC
Imports DevExpress.XtraReports.UI
'...

Private barCode As New XRBarCode()
barCode.Symbology = New QRCodeEPCGenerator()

'...

Dim epcData = New EPCDataConverter() With {
      .BIC = "BPOTBEB1",
    .BeneficiaryName = "Red Cross of Belgium",
    .IBAN = "BE72000000001616",
    .TransferAmount = 1,
    .RemittanceInformation = "Urgency Fund"
}

barCode.BinaryData = epcData.BinaryData

See Also

EPCDataConverter Class

EPCDataConverter Members

DevExpress.XtraPrinting.BarCode.EPC Namespace