tags:

views:

406

answers:

4

We've got a web-based system that will be printing barcodes into PDF files. What I would love is if there was a free/open source .net component that would accept a text string and hand back a graphic of a bar code.

Sure, we could just use a bar-code font, but I'd really rather not compute the checksum myself if I don't have to. Ditto getting the alignment correct for that kind of symbol font.

There seem to be a number of widgets that do this that either cost money or are written in a non-.net language. Does anyone know of a .net widget?

(All things being equal, my first choice for bar-coding would be Code128B, but in the general category of "beggars can't be choosers", I'll take what I can get.)

+1  A: 

Never tried either of them but here are two:

http://www.codeproject.com/KB/cpp/wsbarcode.aspx

http://www.codeproject.com/KB/miscctrl/barcodectl.aspx

scottm
Is it a valid recommendation if you've never tried them?
Gavin Miller
Yes. I read descriptions, looked at source, they looked better than others I looked at so I recommended them.
scottm
A: 

This will write barcodes using pure postscript code:

http://freshmeat.net/projects/postscriptbarcode/

If you can generate the PS and turn it into a PDF you'll have some luck.

Adam Hawes
+3  A: 

If you're going to be progmatically creating PDFs consider iTextSharp - a popular PDF generation engine written in C#. It can do several different barcodes styles into the PDF it is generating.

Joachim Chapman
+2  A: 

QR Code:

Code 128:

Code 39:

EAN-13:

Code 128, Code11, Code 39 (Extended / Full ASCII), Code 93, EAN-8, EAN-13, UPC-A, UPC-E, JAN-13, MSI, ISBN, Standard 2 of 5, Interleaved 2 of 5, PostNet, UPC Supplemental 2, UPC Supplemental 5, Codabar, ITF-14, Telepen:

Parsa