Archive | December, 2012

Generate Code 128 in Windows Forms Using .NET

17 Dec

Generate Code 128 in Windows Forms Using .NET

Code 128 is capable to encode large amount of data into small space. It is easy to use .NET barcode generation SDK. It can be used as generation DLL and integrated with C#.NET/VB.NET class library for barcode generation.

Create New .NET Project with C#/VB.NET Class library

  1. Open Visual Studio then create an Windows Forms project using C#/VB.NET programming;
  2. Install the .NET barcode generator in Windows Forms.
  3. Change barcode parameters in property setting panel or just input the code sample below to generate Code 128.

VB Codes:

Dim code128 As Aspper.Barcode.Bean.BarCode = New Aspper.Barcode.Bean.BarCode

        code128.Symbology = Aspper.Barcode.Symbology.Code128Auto

        code128.CodeToEncode = “128test”

        code128.X = 2

        code128.ImageFormat = System.Drawing.Imaging.ImageFormat.Gif()

        code128.generateBarcodeToImageFile(“C://code128-vb-net.gif”)

        code128.ApplicationIndicator = 0

        code128.FNC1 = Aspper.Barcode.FNC1.None

        code128.TildeEnabled = False

C# Codes:

   BarCode code128 = new BarCode();

        code128.Symbology = Aspper.Barcode.Symbology.Code128Auto;

        code128.CodeToEncode = “128data”;

        code128.X = 2;

        code128.generateBarcodeToImageFile(“C://code128-csharp.png”);

        code128.ApplicationIndicator = 0;

        code128.FNC1 = Aspper.Barcode.FNC1.None;

        code128.TildeEnabled = false;

Code 128 Code Set A, Code 128 Code Set B and Code 128 Code Set C are supported by this barcode generator.

More sample code listing, please refer to www.aspper.com for tutorial.

Sybil

Advertisements

QR Code Merry Christmas!

17 Dec

merry christmas-qrcodewww.aspper.com.qrcodebutterfuly  QR Code. qrcode

 

This is Christmas QR Codes!

Image

QR Code Art

17 Dec

QR Code Art

Generate QR Codes in Windows Forms Using .NET

17 Dec

Generate QR Codes in Windows Forms Using .NET

QR Code is widely used in various applications and it can be easily generated in .NET applications. This .NET barcode component can be used by adding reference on Windows Forms application or just add it as item on toolbox in Visual Studio.

 It is easy to insert QR Codes into ASP.NET, Windows Forms applicaiton.

Create New Winforms with C#/VB.NET Class library

  1. Open Visual Studio then create an Windows Forms project using C#/VB.NET programming;
  2. Install the .NET barcode generator in Windows Forms.
  3. Change barcode parameters in property setting panel or just input the code sample below to generate QR Code.

VB Codes:

Dim qrcode As Aspper.Barcode.Bean.BarCode = New Aspper.Barcode.Bean.BarCode

        qrcode.Symbology = Aspper.Barcode.Symbology.QRCode

        qrcode.CodeToEncode = “QRcode”

        qrcode.X = 4

        qrcode.Y = 4

        qrcode.ImageFormat = System.Drawing.Imaging.ImageFormat.Png

        qrcode.generateBarcodeToImageFile(“C://qrcode-vb-net.png”)

C# Codes:

   Matrix qrcode = new Matrix();

            qrcode.BarcodeType = MatrixBarcode.Qrcode;

            qrcode.Valid_Data = “Qrcode”;

            qrcode.Version_Qrcode = QrcodeVersion.M4_L;

            qrcode.Bar_Alignment = AlignmentHori.Center;

            qrcode.Auto_Resize = true;

            qrcode.Width_X = 1;

            qrcode.WtoH_Ratio = 1;

            qrcode.drawToFile(“c://qrcode.png”);

 

More sample code listing, please refer to www.aspper.com for tutorial.

Sy