01.
Linear barcode =
new
Linear();
02.
03.
04.
barcode.Type = BarcodeType.CODABAR;
05.
06.
07.
08.
09.
10.
11.
barcode.Data =
"112233445566"
;
12.
13.
14.
barcode.CodabarStartChar = CodabarStartStopChar.A;
15.
barcode.CodabarStopChar = CodabarStartStopChar.A;
16.
17.
18.
barcode.UOM = UnitOfMeasure.PIXEL;
19.
barcode.X = 1;
20.
barcode.Y = 80;
21.
barcode.LeftMargin = 0;
22.
barcode.RightMargin = 0;
23.
barcode.TopMargin = 0;
24.
barcode.BottomMargin = 0;
25.
barcode.Resolution = 96;
26.
barcode.Rotate = Rotate.Rotate0;
27.
28.
29.
barcode.ShowText =
true
;
30.
barcode.TextFont =
new
Font(
"Arial"
, 9f, FontStyle.Regular);
31.
barcode.TextMargin = 6;
32.
33.
34.
barcode.Format = ImageFormat.Gif;
35.
36.
barcode.drawBarcode(@
"c:\codabar.gif"
);