Sunday, March 17, 2019

DataMatrix Code Print from Microsoft Dynamics NAV

Hello Friends,

Now you can easily generate DataMatrix Code (like QR Code) from Microsoft Dynamics NAV


Sample DataMatrix Output:




















Sample of Dynamics NAV Code

      FileNameBmp := FileManagement.ServerTempFileName('bmp');
      DataMatrix := DataMatrix.DmtxImageEncoder;
      Image := DataMatrix.EncodeImage(Text2Encode);
      Bitmap := Bitmap.Bitmap(Image, pxWidth, pxHeight);
      Bitmap.Save(FileNameBmp);

      CLEAR(TempBlob);
      IF TempBlob.INSERT THEN;
      FileManagement.BLOBImportFromServerFile(TempBlob, FileNameBmp);
      TempBlob.MODIFY;


Copy DLL File in Add-ins Folder
















Download the sample object from attached link
https://1drv.ms/u/s!An8nhANnLJmtkBaBKCwFT_VX00NR

Write the comments if need more detail
Thank you for reading.
Keep Sharing...Keep Growing.

4 comments:

  1. Hey guys, does anyone have the password for the rar-file?

    ReplyDelete
  2. Hi, can I have the Password to extract files?

    ReplyDelete
  3. please, can you give me the password for the file? thank you

    ReplyDelete
  4. Hi, can you tell me the password for the file?
    Thank's a lot!

    ReplyDelete