Hi all,
I did like to print a barcode using C#. I want the barcode to have a given height and width. I did download a free 3 of 9 barcode font and used
Font barcodeFont = new Font("Free 3 of 9", 17, FontStyle.Regular);
e.Graphics.DrawString("*"+label.Lpn+"*", barcodeFont, Brushes.Black,new RectangleF(166,235,115.16f,61));
to print it. I have two issues with this.
- ) for some font size barcode is printed in two line.
- ) even if I reduce the font and make it print in one line. The barcode does not scan well. I have to swipe it in a perticular way to make it work.
Is there a better way to print barcode which will scan every time??