We have a Developer OEM License and are using several Aspose functions from the Total .Net compilation.
Now I have a problem with the Apose.Barcode DLL, since the GS1DataMatrix Barcode doesn´t work anymore. I don´t know since when, but it was working before.
I put an example here:
public Bitmap GetBarcode()
{
BarCodeBuilder barcode = new BarCodeBuilder("(00)123451234512345123", Symbology.GS1DataMatrix);
barcode.CodeLocation = CodeLocation.Below;
barcode.ImageHeight = 324;
barcode.ImageWidth = 244;
barcode.Resolution = new Resolution(300, 300, ResolutionMode.Printer);
barcode.RotationAngleF = 0;
Bitmap bmp = barcode.BarCodeImage;
barcode.Dispose();
return bmp;
}
public string RecognizeBarcode(Bitmap bmp)
{
StringBuilder sb = new StringBuilder();
BarCodeReader reader = new BarCodeReader(bmp);
while (reader.Read())
{
sb.AppendLine(reader.GetCodeText());
}
return sb.ToString();
}
When creating a barcode bitmap with the GetBarcode Method and afterwards reading it with the RecognizeBarcode Method, I get this result:
è00123451234512345123
instead of:
(00)123451234512345123
The result is not usable (i also tested it with a scanner) and cannot be used as a GS1DataMatrix Code.
When trying the same procedure with Symbology GS1Code128, it works,
Best regards
Stefan Zabicki
Thank you for the quick reply.
The recognition should work without defining a DecodeType. Normal scanners (like they are being used in production or logistics) have to recognize the decodetype themselves too.
The code snippet just reflects the real scanning situation you would have, using hardware for recognition.
Thank you for looking into the issue, but I can´t use the modified code, since it wouldn´t be generic.
I hope there will be a solution soon, since we have to use an older library, as long as this isn´t solved.
Best regards
Stefan Zabicki
Hello Ikram,
is there any progress in the solution of our problem. We still use an older DLL from Aspose.Barcode where the problem did not exist. We would like to change to actual libraries soon, so we can use the recognition features as well.
Best regards
Stefan
Hi Stefan,
The issues you have found earlier (filed as BARCODENET-36479) have been fixed in this update.
This message was posted using Notification2Forum from Downloads module by Aspose Notifier.