A while back I needed to print Barcode labels from a production test gear at work. I googled “ActiveX Barcode control” hoping to find a quick, easy and free solution to this and I was presented with loads of links to $100+ controls to do this. I didn't think any of them were worth it (about the most I would have payed was a fiver!) – all I wanted was to print a Barcode! Well, I got home that night pissed off I couldn't complete the label program that day and Googled again, this time for C libraries and came across GNU Barcode. Half an hour later, I'd ported Code128 to C#. The result I share here in case anyone else would like to print a load of vertical lines and doesn't want to pay over $100 to do it!
This is a simple port of the Code128 algorithm from GNU barcode to .NET written in C#. There is also a port to Java. The library is designed to be extensible so as to enable further 1d encodings to be added. If you'd like me to do this then please contact me using the form on this website. The .NET version of the library has been heavily tested in a real production environment.
BarcodeJ Binary - Java Version [11 KB]
Barcode Library for .NET [9 KB]