Barcodes drucken Sie mit dem Element InlineBarcode:
<TableCell>
<Paragraph TextAlignment="Center">
<vbr:InlineBarcode BarcodeType="QRCODE" QRPixelsPerModule="20"
VBContent="CurrentFacilityCharge.FacilityChargeID" />
</Paragraph>
<Paragraph TextAlignment="Center">
<vbr:InlineBarcode BarcodeType="CODE128" BarcodeWidth="800" BarcodeHeight="100"
VBContent="CurrentFacilityCharge.FacilityChargeID" />
</Paragraph>
</TableCell>
Die Eigenschaft "BarcodeType" erlaubt folgende Werte:
public enum BarcodeType
{
UNSPECIFIED = 0,
UPCA = 1,
UPCE = 2,
UPC_SUPPLEMENTAL_2DIGIT = 3,
UPC_SUPPLEMENTAL_5DIGIT = 4,
EAN13 = 5,
EAN8 = 6,
Interleaved2of5 = 7,
Interleaved2of5_Mod10 = 8,
Standard2of5 = 9,
Standard2of5_Mod10 = 10,
Industrial2of5 = 11,
Industrial2of5_Mod10 = 12,
CODE39 = 13,
CODE39Extended = 14,
CODE39_Mod43 = 15,
Codabar = 16,
PostNet = 17,
BOOKLAND = 18,
ISBN = 19,
JAN13 = 20,
MSI_Mod10 = 21,
MSI_2Mod10 = 22,
MSI_Mod11 = 23,
MSI_Mod11_Mod10 = 24,
Modified_Plessey = 25,
CODE11 = 26,
USD8 = 27,
UCC12 = 28,
UCC13 = 29,
LOGMARS = 30,
CODE128 = 31,
CODE128A = 32,
CODE128B = 33,
CODE128C = 34,
ITF14 = 35,
CODE93 = 36,
TELEPEN = 37,
FIM = 38,
PHARMACODE = 39,
QRCODE = 99
}
Für QR-Barcodes (2D) muss die Eigenschaft QRPixelsPerModule gesetzt werden, mit der Sie definieren, wie groß ein Modul in pixel ist (Kästchen).
Für einfache Barcodes (1D) müssen die Eigenschaften BarcodeWidth und BarcodeHeight (pixel) gesetzt werden, mit der Sie definieren, wie groß das Bitmap sein soll das generiert werden soll.