Tag Archives: How to Generate Barcode

Print Code 39 in Windows Forms application using C#

13 Nov

I t  is quiet easy to print a Code 39 barcodes in Windows Forms application using barcode font or .NET barcode generation SDK for .NET applications.

1. Search one barcode font or generation control for Code 39. Or some tools able to create linear barcodes are OK.

2. Follow the steps and install the barcode control in Visual Studio.

3. Add this barcode to toolbox of VS and barcode item could be dragged and dropped on to the forms you need.

4. Add this generation SDK as project reference, barcodes could be created easily using C# sample codes.

For example:

BarCode code39 = new BarCode(); 
code39.Symbology = Symbology.Code39; 
code39.Data = "CODE39"; 
code39.BarcodeImageWidth = 175; 
code39.BarcodeImageHeight = 50; 
code39.N = 2; 
code39.I = 5; 
code39.AutoResize = true; 


How to Add barcode images like QR Code in Native Crystal Reports using C#.NET?

19 Oct

It is possible to insert QR Code bar code images in Native Crystal Reports using Visual C# Class Library. .NET developers are able to integrate .NET applications like ASP.NET web application and Windows Forms applications with  Crystal Reports. You could insert bar code images into report solution using Visual Studio 2005 and 2010. QR Code barcode properties includes barcode height, width, X-dimension, , margins etc could be modified using C# programming.
Follow the steps to generate barcodes in Crystal Report using C# Class library:
  1. Download Aspper.Barcode.CrystalReports free trial package and unzip it on your computer.
  2. Start Visual Studio and create a Crystal Reports project using C#.
  3. In Crystal Report Gallery dialog box, choose the defaults of “Use Report Expert” and “Standard Report”.
  4. Expand “Create New Connection” and choose “ADO.NET” in Data form and click “next”.
  5. In the “Connection” form, select the “CustomerDataSet.xsd” in the downloaded package, and then click “Finish”.
  6. Add a  “Customer” table in the “Data” form, and then click “Next”.
  7. Add all three columns to the right “Customer” fields, Click “Finish” button.
  8. In CrystalReport1.rpt, drag and drop field “Barcode” to the report you created.
  9. Go to .NET project solution explorer, and then choose “Aspper.Barcode.CrystalReports Barcode.dll” and add it to the project reference.
  10. Then add “Aspper.Barcode.CrystalReports.dll” to your Crystal Reports project reference;
  11. Right click “Default.aspx” in “Solution Explorer” and choose “View Code” to enter the code form.

Now you are able to modify barcode properties according to specific requirements.  It is possible to maintain bar code images on files when you exporting them to PDF, Word, Excel and Power point formats.


Generate Bar code in Word Document

12 Oct

It is possible to insert bar code symbology into Microsoft Word document using office add-in or plug-in.

Search for one Barcode Add-in, and it will help you easily encode mail merge fields directly in the PDF 417, QR Code and Data Matrix barcode symbology and other linear barcodes. Barcode images could be created easily by few mouse clicks.

High quality barcode images could be created in high and low resolution barcode images that can be printed with all printers. Users are allowed to set QR Code encoding versions, Data Matrix encoding mode, Error Correction Level etc. by changing relating properties.

Barcode add-in for word can be implemented to create product labels, single label in pos system easily.