A simple way to generate maxicode barcode

Posted by Godsky under C# on 12/23/2012 | Points: 10 | Views : 3113 | Status : [Member] | Replies : 11
1. Constants

1.1 Encoding
2~6

2.Class and description

2.1 Maxicode encoder component
public ImageEncoder()
public System.Drawing.Bitmap Encode2Image()
public bool Encode2ImageFile(string filename)
public bool RegisterMaxicodeEncoder(string strMail, string strRegCode)
public string Country { set; get; }
public string Data { set; get; }
public int Margin { set; get; }
public int Mode { set; get; }
public int NumberOfCodes { set; get; }
public int PositionOfCode { set; get; }
public bool ProcessTilde { set; get; }
public int Resolution { set; get; }
public string ServiceClass { set; get; }
public string ZipCode { set; get; }



2.2 Maxicode WinForm control
public MaxicodeFormControl()
public bool RegisterControl(string strMail, string strRegCode)
public string Country { set; get; }
public string Data { set; get; }
public int NumberOfCodes { set; get; }
public int PositionOfCode { set; get; }
public int Resolution { set; get; }
public string ServiceClass { set; get; }
public string ZipCode { set; get; }

2.3 Maxicode Web control
public MaxicodeWebControl()
public bool RegisterControl(string strMail, string strRegCode)
public string Country { set; get; }
public string Data { set; get; }
public string LocalImageDirectory { set; get; }
public int NumberOfCodes { set; get; }
public int PositionOfCode { set; get; }
public int Resolution { set; get; }
public string ServiceClass { set; get; }
public string ZipCode { set; get; }

3. Samples
3.1 Encode to image
ImageEncoder iee = new ImageEncoder();
iee.Country = "001";
iee.ServiceClass = "002";
iee.ZipCode = "N1012";
iee.Mode = 2;
iee.Data = "http://www.aipsys.com";
iee.NumberOfCodes = 1;
iee.PositionOfCode = 1;
iee.Margin = 30;
iee.Resolution = 300;
pictureBox1.Image = iee.Encode2Image();

3.2 Encode to image file
ImageEncoder iee = new ImageEncoder();
iee.Country = "001";
iee.ServiceClass = "002";
iee.ZipCode = "N1012";
iee.Mode = 2;
iee.Data = "http://www.aipsys.com";
iee.NumberOfCodes = 1;
iee.PositionOfCode = 1;
iee.Margin = 30;
iee.Resolution = 300;
iee.Encode2ImageFile("c:\\maxicode.gif");

if you need the SDK , please visit http://www.aipsys.com for details




Responses

Posted by: Adelali on: 1/22/2013 [Member] Starter | Points: 25

Up
0
Down
Here is another sample code of C# to gegerate barcode in .net: (http://www.businessrefinery.com/products/barcode_net/main.html)
using BusinessRefinery.Barcode;
QRCode barcode = new QRCode();
barcode.Code = "QR Code";
barcode.Resolution = 104;
barcode.Rotate = Rotate.Rotate180;
barcode.Format = ImageFormat.Gif;
barcode.drawBarcode2ImageFile("c:/qr-code-csharp.gif");
You can adjust its properties.

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

Posted by: Adelali on: 1/22/2013 [Member] Starter | Points: 25

Up
0
Down
Here is another sample code of C# to gegerate barcode in .net: (http://www.businessrefinery.com/products/barcode_net/main.html )
using BusinessRefinery.Barcode;
QRCode barcode = new QRCode();
barcode.Code = "QR Code";
barcode.Resolution = 104;
barcode.Rotate = Rotate.Rotate180;
barcode.Format = ImageFormat.Gif;
barcode.drawBarcode2ImageFile("c:/qr-code-csharp.gif");
You can adjust its properties.

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

Posted by: Ulysses on: 2/5/2013 [Member] Starter | Points: 25

Up
0
Down
useful barcoding code http://www.rasteredge.com/online-barcode-generator/code-128/

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

Posted by: Dsdsdsw23 on: 4/12/2013 [Member] Starter | Points: 25

Up
0
Down
How about this code for creating barcode in C# ASP.NET: http://www.onbarcode.com/tutorial/csharp-barcode-create-asp-net.html


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

Posted by: Jakeblue on: 4/14/2013 [Member] Starter | Points: 25

Up
0
Down
Do I need any 3rd party barcode generator dll for generating Data Matrix barcode using your method?







___________________
www.barcodelib.com

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

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

Up
0
Down
Using .NET Data Matrix barcode generator dll, you cam generate Data Matrix barcode in a simpler way:
BarcodeLib.Barcode.DataMatrix barcode = new BarcodeLib.Barcode.DataMatrix();

barcode.Data = "123456789012";

barcode.UOM = UnitOfMeasure.PIXEL;
barcode.ModuleSize = 3;
barcode.LeftMargin = 0;
barcode.RightMargin = 0;
barcode.TopMargin = 0;
barcode.BottomMargin = 0;

barcode.Encoding = BarcodeLib.Barcode.DataMatrixEncoding.ASCII;
barcode.Format = BarcodeLib.Barcode.DataMatrixFormat.Format_10X10;
barcode.ImageFormat = System.Drawing.Imaging.ImageFormat.Png;
// more barcode settings here

// save barcode image into your system
barcode.drawBarcode("c://barcode.png");


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: Abby321 on: 5/15/2013 [Member] Starter | Points: 25

Up
0
Down
Using this .NET Data Matrix Generator to generate barcodes in ASP.NET, C#, VB.NET is also very simple and the generated barcode images meet latest barcoding specifications.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: 7/29/2013 [Member] Starter | Points: 25

Up
0
Down
I know this online barcode generator http://www.keepautomation.com/online_barcode_generator/ which supports many projects such as data matrix, pdf-417,qr code,etc

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

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

Up
0
Down
have you found the easy way to do such a thing ? i think the way to generate barcode (maxicode ) is similar to other barcodes
you may take an example
http://www.idautomation.com/barcode-faq/2d/maxicode/
http://www.keepautomation.com/vbnet_barcode/data_matrix.html

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

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

Up
0
Down
in order to help you generate barcode, here is what you can do
http://www.keepdynamic.com/barcoding/csharp-barcode-generator.shtml


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

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

Up
0
Down
There are many different kinds of barcodes. The format we're dealing with here is called "3 of 9" (also referred to as Code 39). Most all third-party component libraries can generate these codes -- but there are also other options for generating 3 of 9 barcodes.

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

Login to post response