Hello,
We are using ASPOSE.barcode to print a GS1 Datamatrix barcode that we have sent off for verification. We were supprised to find out to today that barcode had failed verification and was not a valid GS1 barcode.
Hello,
We are using ASPOSE.barcode to print a GS1 Datamatrix barcode that we have sent off for verification. We were supprised to find out to today that barcode had failed verification and was not a valid GS1 barcode.
Hi,
I have attached a copy of the label and the gs1 verification document from GS1 US
bellow is the code for generating the barcode image:
private byte[] GenerateImageBinary(Symbology symbologytype, String codetext) { //- create the bar code builder. Aspose.BarCode.License lic = new License(); lic.SetLicense("Aspose.BarCode.lic"); Aspose.BarCode.BarCodeBuilder builder = new BarCodeBuilder();<span style="color: green;">//- create the image.</span> builder.SymbologyType = symbologytype; builder.WideNarrowRatio = 0.3f; builder.BackColor = System.Drawing.<span style="color: rgb(43, 145, 175);">Color</span>.White; builder.ForeColor = System.Drawing.<span style="color: rgb(43, 145, 175);">Color</span>.Black; builder.CodeText = codetext; builder.CaptionAbove.Visible = <span style="color: blue;">false</span>; builder.CaptionBelow.Visible = <span style="color: blue;">false</span>; builder.CodeLocation = <span style="color: rgb(43, 145, 175);">CodeLocation</span>.None; System.Drawing.<span style="color: rgb(43, 145, 175);">Image</span> img = builder.BarCodeImage; <span style="color: green;">//- Convert the image to a byte array.</span> System.IO.<span style="color: rgb(43, 145, 175);">MemoryStream</span> ms = <span style="color: blue;">new</span> System.IO.<span style="color: rgb(43, 145, 175);">MemoryStream</span>(); img.Save(ms, System.Drawing.Imaging.<span style="color: rgb(43, 145, 175);">ImageFormat</span>.Png); <span style="color: blue;">byte</span>[] byte_image = ms.ToArray(); <span style="color: green;">//- return the image binary</span> <span style="color: blue;">return</span> byte_image; }</pre><pre style="background: white; color: black; font-family: Consolas;"> </pre><pre style="background: white; color: black; font-family: Consolas;">The values passed into the function are GS1DataMatrix and <font size="2" face="Helv"><font size="2" face="Helv">(01)08426950511601(17)131027(10)312044-016</font></font><p><font size="1" face="Arial"><font size="1" face="Arial"> </p><font size="1" face="Arial"><font size="1" face="Arial"></font></font></font></font></pre>
Hi Adrien,
Thank you for your patience. Could you please take verification of the three attached bar code images? This will help us to find the exact problem. Second, these lines are useless in the provided example:
builder.WideNarrowRatio = 0.3f;
builder.BackColor = System.Drawing.Color.White;
builder.ForeColor = System.Drawing.Color.Black;
The three barcodes all scan as datamatrix text and not GS1Datamatrix. I have attached a barcode that has passed validation for GS1Datamatrix.
This barcode was generated using the bartender software.
Hi Adrien,
This barcode scans as datamatrix text it does not have GS1 codetext prefix please refer to the GS1 website for this. It is rather costly for us to have barcodes verfied as it is $100 dollars per request.
Hi Adrien,
Hi Adrien,
Thanks for the information. Is there an updated ETA on the new version?
Hi Adrien,
Is there an updated ETA on the new version?
Hi Adrien,
Is there any new update on this?
The issues you have found earlier (filed as BARCODENET-33553) have been fixed in this update.