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

Free Support Forum - aspose.com

Four segment datamatrix

Hi Do you support four segment datamatrix generation? I only found information about basic datamatrix. Regards Steffen

Hi Steffen,

Thank you for your interest in our Aspose.BarCode product. You can generate a four segment DataMatrix barcode by using following code snippet:

string text = “test

BarCodeBuilder builder = new BarCodeBuilder(text, Symbology.DataMatrix);

builder.Rows = 16;

builder.Columns = 16;

builder.Save("c:\\ab\\test30\\Out0.png", BarCodeImageFormat.Png);

If Rows and Columns aren't set then it will use auto mode to generate minimum square DataMatrix. If Rows and Columns are set but aren't valid then BarCodeException is thrown with message about this error.

In addition, there are some evaluation limitations. You can avoid evaluation limitations by getting a temporary license for 30 days and try the latest version at your end. Please visit download page here:

You can learn all about how Aspose products are licensed by checking out the Licenses FAQ here: http://www.aspose.com/corporate/purchase/faqs/default.aspx