Generate Data Matrix Barcode with Text on its Right using C#

We are pleased to announce the release of Aspose.Barcode for .NET 7.9.0. This release supports showing the code text on the right side of the barcode. A new algorithm has also been implemented which allows you to read 3D-distorted Aztec codes.

Generate Data Matrix Barcode with Text on its Right

Aspose.Barcode for .NET allows you to set the code text location to the right side of the barcode. This is helpful in showing the code text on the right side of a data matrix barcode. BarCodeBuilder.CodeLocation can be set to CodeLocation.Right e.g.

string gtin = "898978777776665655";
string uid = "121212121212121212";
string batch = "GH768";
string expDate = "150923";

string textToEncode = gtin + uid + batch + expDate; // or  "(01)"+ gtin + "(..)"+ uid + ...
string textToDisplay = "GTIN:" + gtin + "\nUID:" + uid + "\nBatch:" + batch + "\nExp.Date:" + expDate;

BarCodeBuilder builder = new BarCodeBuilder(textToEncode, Symbology.DataMatrix);
//In order to avoid including all the names into the codetext, the property called "Display2DText" should be used.
builder.Display2DText = textToDisplay;
builder.CodeLocation = CodeLocation.Right;
builder.Margins = new MarginsF(0, 0, 0, 0);

builder.Save("codetextRightDisplay.png");

Enhancements

Following is a list of improvements included in this release.

  • Aztec codes recognition has been improved 
  • Verify APTCACheck for Aspose.Barcode DLL 
  • QR barcode recognition has been improved

To view a complete list of new features and fixes and to download the latest release, please visit Aspose.Barcode for .NET 7.9.0 page in downloads section.

Aspose.BarCode for .NET Resources

The resources, you may need to accomplish your tasks: