PROCEDURE Create2DBarcode(Text2Encode : Text[250];pxWidth : Integer;pxHeight : Integer;VAR TempBlob : TEMPORARY Record 99008535); VAR DataMatrix : DotNet "'DataMatrix.net, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.DataMatrix.net.DmtxImageEncoder"; Image : DotNet "'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.System.Drawing.Image"; Bitmap : DotNet "'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.System.Drawing.Bitmap"; BEGIN 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; END;
Answers
PDF147
Data Matrix Code
You can use DataMatrix component to generate barcode: http://datamatrixnet.sourceforge.net/
Here is example from Nav 2017, this function returns bmp-image in TempBlob record:
i got the solution using Zxing
Thanks anyway
What have I missed?