A simple way to generate Datamatrix barcode

Posted by Godsky under C# on 12/23/2012 | Points: 10 | Views : 2694 | Status : [Member] | Replies : 6
Before start the programming, please download DatamatrixEncodeNet SDK from aipsys.com

constants:
SymbolSize:

SymbolRectAuto = -2
SymbolSquareAuto=-1
Symbol10x10=0
Symbol12x12=1
Symbol14x14=2
Symbol16x16=3
Symbol18x18=4
Symbol20x20=5
Symbol22x22=6
Symbol24x24=7
Symbol26x26=8
Symbol32x32=9
Symbol36x36=10
Symbol40x40=11
Symbol44x44=12
Symbol48x48=13
Symbol52x52=14
Symbol64x64=15
Symbol72x72=16
Symbol80x80=17
Symbol88x88=18
Symbol96x96=19
Symbol104x104=20
Symbol120x120=21
Symbol132x132=22
Symbol144x144=23
Symbol8x18=24
Symbol8x32=25
Symbol12x26=26
Symbol12x36=27
Symbol16x36=28
Symbol16x48=29


Mode:

Ascii=0
C40=1
Text=2
X12=3
Edifact=4
Base256=5
AsciiGS1=6


Programming samples:

.........
using aipsys.datamatrix.encoder;
..........

Encode to Bitmap and show it:

ImageEncoder iee = new ImageEncoder();
ie.Margin = 4;
ie.PixelSize = 3;
ie.Scheme = 0;
ie.SymbolSize = -2;
string s = "http://www.aipsys.com";
pictureBox1.Image = iee.Encode2Image(s);

Encode and save the barcode image to file:

ImageEncoder ie = new ImageEncoder();
ie.Margin = 4;
ie.PixelSize = 3;
ie.Scheme = 0;
ie.SymbolSize = -2;
ie.Encode2ImageFile("http://www.aipsys.com", "c:\\test.gif");




Responses

Posted by: Karl on: 1/15/2013 [Member] Starter | Points: 25

Up
0
Down
Here is another Barcode Component to create Data Matrix barcode and export it in image.
http://www.avapose.com/aspnet_barcode/datamatrix_generator.shtml


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

Posted by: Ewrwfw on: 1/16/2013 [Member] Starter | Points: 25

Up
0
Down
Now Dada Matrix can be created in many platforms, such as Java, .NET, Office, etc. If you want to generate Data Matrix in .NET, you can use a .NET Data Matrix barcode generator SDK. You can put this in Google and you can find many professional generators, such as this:http://www.onbarcode.com/products/net_barcode/barcodes/data_matrix.html in the fiset page of Google.

Hi

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

Posted by: Mikepeal on: 3/6/2013 [Member] Starter | Points: 25

Up
0
Down
I just wanna ask one question that do I need to pay for this simple barcode generation method?


http://www.barcodelib.com/net_barcode/barcode_symbologies/data_matrix.html

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

Posted by: Mariah on: 8/8/2013 [Member] Starter | Points: 25

Up
0
Down
if you search Data Matrix on the Internet, you cannot avoid finding a lot of information about it , such as,the data matrix can be print in many project,like net, C#,vb,ms office etc. you can take this for example
http://www.keepautomation.com/online_barcode_generator/data_matrix/

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

Posted by: Makaveiljojo on: 1/16/2014 [Member] Starter | Points: 25

Up
0
Down
Free online barcode generator might be attractive cuz it's free of charge and easy-operated. But what if it's offline condition when you are in need of generating barcode. I've checked the site you posted. They provided a lot free demos, here is one for generating data matrix in SSRS.
http://www.keepautomation.com/products/net_barcode_reporting_service/barcodes/data_matrix.html


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

Posted by: Sarahwhite0 on: 5/26/2014 [Member] Starter | Points: 25

Up
0
Down
I've also tried barcode generator SDK for .NET, C#.NET from pqScan. Works well till now.
And you may want to scan Data Matrix in C#, get full idea: http://www.pqscan.com/read-barcode/datamatrix-csharp-vb.html

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

Login to post response