Integrate barcode with MS Dynamics NAV

Keywords

Microsoft Dynamics NAV, barcode, QR Code

Microsoft® Dynamics NAV®, formerly known as Navision, is a complete ERP system for mid-size organizations. If you want to generate linear or 2D barcodes in Microsoft Dynamics NAV, you don't need to look any further.

Barcodesoft crUFLBcsNet.dll is a smart and simple solution for integration with Dynamics NAV.

Using crUFLBcsNet.dll in MS Dynamics NAV

  1. Register crUFLBcsNet.dll: Open DOS prompt as Administrator and run the following command: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\regasm cruflbcsnet.dll /tlb:cruflbcsnet.tlb /codebase
  2. Deployment: Copy crUFLBcsNet.dll into the NAV Add-ins folder.
  3. C/AL Automation Examples:
    // Generate QR Code
    myQR := myQR.CQRCode;
    barcodeBytes := myQR.Image('1234567890', 240, 240);
    BLOBField.CREATEINSTREAM(inStream);
    inStream.Write(barcodeBytes);