Recently someone asked me how to print barcodes in a Dynamics NAV RDLC report. And I hade done something similar, years ago in NAV2009. So I had a look at my code and updated it to NAV 2015.
As you can see, it still works:
Usually a barcode is no more then a font you need to select, and maybe first download and install. But sometimes it does not work of is not available for all fonts. When I was confronted with this years ago, I went to mibuso.com (ofcourse) and found a good solution from Stijn Bossuyt, who used the code from Igor Pchelnikov: http://mibuso.com/downloads/interleaved-2-of-5-barcode-creator
Based upon that information I then created the report.
The source code is available here:
So I thought, why not share this?
- Stijn Bossuyt:
- Igor Pchelnikov:
For the following post on Mibuso: http://mibuso.com/dlinfo.asp?FileID=1185
- For the details about barcoding:
- Description of the BMP file format:
There’s however a much better way to achieve the same goal. You can use a free web service to generate your barcodes, and .NET interop to manage it. Please have a look here:
Thanks Arend-Jan for this great tip!