This project has moved. For the latest updates, please go here.

Custom Sized Barcode With C39 or C128

Topics: Code 128, Code 39
Feb 15, 2009 at 3:02 PM
Hello to all,

i want to create custom sized barcode and I have to draw it programmatically. (So i can't use a BarcodeLabel.)

When i try to do that with using the code below(Code 39), it says  "Only variable pitch drawing supported" at the fourth line of code

Code39BarcodeDraw

drw = BarcodeDrawFactory.Code93WithChecksum;
System.Drawing.Image img = drw.Draw("ABC123456", 50, 360);
MemoryStream mem = new MemoryStream();
img.Save(mem, System.Drawing.Imaging.
ImageFormat.Jpeg);

 

Then i tried it with Code128 using the same code except the first line. It does not give an error, but creates a stupid image with a width of 44280px.

I also tried using variable pitch, i gave minwidth,maxwidth,minheight and maxheight, the same result occured, the image with a huge width....

Could any one help me plz?


Thanks.....
Feb 15, 2009 at 3:42 PM
Edited Feb 15, 2009 at 3:44 PM
I think the width and height aren't about the whole barcode. I think they are about the bars that forms the whole barcode??

If it is right then how can i generate a barcode that is more smaller then the orijinal one, any suggestions?

Thanks...