How to generate data matrix 2d bar code for c# [Resolved]

Posted by Ahmedsa under Windows Forms on 4/25/2017 | Points: 10 | Views : 342 | Status : [Member] | Replies : 1
I work in windows form in visual studio 2015 using c# Language

And I need to generate data matrix to name and phone and address

So that how to do that please using data matrix barcode 2d without using

Commercial library

Are there are any open source or free library can I use it to generate data matrix 2d

Barcode for name and phone and address as example?

I can do it by qr message toolkit library

But data matrix what I can use which library or c# code or class library I use for generating datamatrix?




Responses

Posted by: Susan2016 on: 5/1/2017 [Member] Starter | Points: 50

Up
0
Down

Resolved
BarcodeSettings settings = new BarcodeSettings();
settings.Type = BarCodeType.DataMatrix;
settings.Unit = GraphicsUnit.Pixel;
settings.ShowText = false;
settings.ResolutionType = ResolutionType.UseDpi;
settings.X = 5f;
settings.Data = "Name:John & ...";
BarCodeGenerator generator = new BarCodeGenerator(settings);
Image image = generator.GenerateImage();
image.Save("2DDataMatrix.png");

This solution is based on free .NET barcode api: freebarcode.codeplex.com

Ahmedsa, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response