Free Support Forum - aspose.com

DataMatrix with custom number of row/column have wrong size

Hi all,
I’m a new user of Aspose.Barcode for .net.

I’m trying to generate a Datamatrix barcode with custom number of rows and column (for example 32x32) and I don’t succeed in setting the dimension of the barcode: I must set size (in pixel) to bigger values than which that I need to obtain an image of the right dimension:
I set
generator.Parameters.Barcode.AutoSizeMode = AutoSizeMode.Nearest;
generator.Parameters.Barcode.BarCodeWidth.Pixels = 240;
generator.Parameters.Barcode.BarCodeHeight.Pixels = 240;
generator.Parameters.Barcode.DataMatrix.Rows = 32;
generator.Parameters.Barcode.DataMatrix.Columns = 32;

and the image of barcode generated is 110x110 (instead of 240x240)

am I not woking in the right way?
Thankyou very much!

Elisa Costa

@elisacosta,
Thank you for your query.

We are working on your requirement and have logged it in our database for a sample code. Once, we will have some news for you, we will update you in this topic.

This issue has been logged as

BARCODENET-37403 – DataMatrix with custom number of row/column and specified image size

Thanks a lot!
I will follow the state of issue.

Best regards

Elisa Costa

Hi all,
I’ve updated library at version 20.3.0 and this issue seems resolved.

Thank you very much

Best regards

Elisa Costa

@elisacosta,

We enhanced DataMatrix barcodes in latest version. Good to know that your issue is sorted out in it.