We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Padding in CodeMatrix

EDIT:

Solved with the actual Version of aspose.BarCode I was using an old version...

Hi

I have a problem encoding serial numbers to a CodeMatrix and reading it with a Motorola DS3578 scanner.

The scanner is completly resetted.

If I encode "B123456%116747" it works. If I try "BG103459%000254" I get a readable barcode, but the result is "BG103459%00025417" (trailing 17) "BG10283%%000181_2192%" results in a trailing "03".

Could it be a Padding problem? If I padd the text up the to the next barcode size -1 the string I get from the scanner is correct.

the code:
using (BarCodeBuilder barcodeBuilder = new BarCodeBuilder())
{

barcodeBuilder.CodeText=textBox1.Text;

barcodeBuilder.SymbologyType = Symbology.DataMatrix;

barcodeBuilder.CodeLocation = Aspose.BarCode.CodeLocation.None;

try
{
pictureBox2.Image = barcodeBuilder.GenerateBarCodeImage();
}
catch (Exception ec)
{

}
}


here: http://barcode-coder.com/en/barcode-online-generator-2.html the code is generated correctly

Hi


Thank you for your inquiry.

Solved with the actual Version of aspose.BarCode I was using an old version…

Did you mean that you have tried it with the latest version of Aspose.BarCode for .NET 5.3.0?

It is possible that Aspose.BarCode padding arithmetic is not compatible with your scanner. We recommend you to generate a barcode with our latest release of Aspose.BarCode for .NET v5.3.0. Please give it a try on Motorola DS3578 scanner and share the results produce from it. It is because each new release contains many improvements, bug fixes and new features. So, we suggest you always use the latest versions of Aspose products. You can download it from here:
http://www.aspose.com/community/files/51/.net-components/aspose.barcode-for-.net/default.aspx