Many companies use QR Code to print in Dynamics NAV. The NAV Team had released a while a solution using COM.
The solution is outdated and required a new solution in NAV 2016. NAV 2016 has a 64 bit executable and many COM objects do not run in it.
The following solution uses Zxing Barcode solution. Zxing is an open source free barcoding solution.
It supports UPC-A, EAN-8, EAN-13, Code 39, Code 128, ITF, Codabar, Plessey, MSI, QR Code, PDF-417, Aztec, Data Matrix
You need to download the solution and copy the net4.5 folder into the add-in sub-folder on client and service tier.
Here is a screenshot of the solution.
here is the result
Here are the objects
Hi Rashed, i could not find net4.5 folder under the ZXingNet.zip folder. could you please help me to find? Thanks
Hi I need to print as pdf147 and data matrix code
should we buy the font ? or can we can use free ones?
which file need to download? for solution
A further limitation it seems is that it only runs on Windows Client, not Web Client. Seems to me because the Dot-Net Variables are set to "RUNONCLIENT". Tried to run it without that option, but then run into permission problems. "A call to ZXing.BarcodeWriter.Write failed with this message: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib..... failed". But seems to work in Windows Client. Even managed to write the QR-Barcode into a BLOB after a while. NAV Version of mine was 2017. Had also the problem with empty list in the .NET assemblies. Solved that with putting the Add-In files only on the Server, not on the Client.
Guys, i'm getting GDI error on bitmap.Save.. What am I missing here?
ppl say it's because i should stream and not just try to save it right away.
Extra: How do i save it to a blob field in a table instead of on fx c:\temp\xcxcx ?
Do i have to save it locally before i put it into a BLOB field?
Many tanks :)