QR Code .NET Barcode Generator/Library for C#.NET Class
QR Code Barcode Generator/Library in C#.NET - Overview
QR Code barcode library helps you to add barcodes easily into Visual C# .NET projects. Users are entitled to change the parameters of the barcodes. Aspper QR Code barcode generator provides royalty-free perpetual developer licenses and optional source code. Parameters of this QR Code generator are highly customizable.
QR Code Barcode Generator/Library for C#.NET - Benefits
- QR Code barcode library is able to integrate barcode images into Windows Forms applications, Class Library, Console Application, Windows Control Library and Crystal Reports Application.
- 100% managed code created in C# .NET with strong name signatures and signed DLLs
- An advanced feature "Winforms Data-Binding" is supported by this barcode control.
- This control support QR Code symbol version ranges from V1 to V40.
- QR Code barcode library is 100% compatible with variety of operating systems: vista, Windows 2000, XP, Windows 7, Window Server 2003 and 2008.
- Barcode library could be used in Visual Studio 2005, 2008, and 2010.
- This library is compatible with .NET Framework 2.0, 3.0, 3.5 or greater.
- Barcode generator computes the checksum digit automatically.
- Barcode generator is fully compatible with ISO / IEC 18004.
- Human-readable text of QR Code symbology is allowed to be enabled or disabled.
- Barcode images created by this control could rotate in 4 orientations (0, 90, 180, 270 degrees).
- Users are entitled to customize the Properties including X, Y-dimension, wide-to-narrow ratio, margin size of the barcode created by the C#.NET control.
- This barcode library could dynamically create high-quality JPEG, GIF, BMP, PNG, and TIFF which are streamed directly into an application.
QR Code Barcode Generator/Library for .NET Applications
Aspper.com provides complete information of
User Guide for Visual C# solution to generate dynamic QR Code barcodes into .NET applications and report solution.
How to Create QR Code Barcodes on C#.NET Class Library
Generate and Draw QR Code 1D Barcodes in C#.NET Classes
- Download the QR Code barcode generation SDK folder and unzip it. Copy the barcode generation dll to your C#.NET project folder.
- Open your project in Visual Studio; add QR Code barcode generation dll to project reference.
- Right click the form, choose (view code) in the list. Barcodes could be created easily by adding C# code.
// Create linear barcode object
qrcode = new BarCode();
//Barcode symbology setting
qrcode = Symbology.QRCode
//Barcode encoded data setting
qrcode = "0123456789"
// Draw & print generated barcode to png image file
qrcode.drawBarcode("csharp-qrcode.png")
Basic property setting of QR Code
//Barcode encoded data setting
qrcode.Data = "01234567891";
// Barcode symbology type setting
qrcode.Symbology = Symbology. QR Code;
//Unit of measure setting
qrcode.UOM = UnitOfMeasure.PIXEL;
// Bar module width (X) setting, default is 2 pixel;
qrcode.X = 2;
// Bar module height (Y) setting, default is 75 pixel;
qrcode.Y = 75;
// Left, right, top, bottom margins setting. Defaults are 0.
qrcode. MarginLeft = 0;
qrcode. MarginRight = 0;
qrcode. MarginTop = 0;
qrcode. MarginBottom = 0;
// Image resolution setting, default is 72 dpi.
qrcode.Resolution = 72;
// Barcode orientation setting: 0, 90, 180, 270 degrees
qrcode. Angle = Angle. Degree0;
// If true, apply checksum digit characters in the input data. Default is false.
qrcode.AddCheckSum = true;
Format setting for QR Code with C#.NET
// If true, display the human readable text under the barcode
qrcode.ShowText = true;
// If true, display the checksum digit
qrcode. ShowCheckSum Char = true;
// Text font setting
qrcode.TextFont = new Font("Arial", 9f, FontStyle.Regular);
// Set the space between barcode and text. Default is 6 pixel.
qrcode.TextMargin = 6;
Color setting for QR Code with C#.NET
//Background color setting, Default is white.
qrcode. BackgroundColor = white;
//Foreground color setting, Default is black.
qrcode. ForegroundColor = black;
QR Code Special Setting
// If true, apply the tilde character "~" to specify special characters in the input data.
qrcode. EnableTilde = true;
//Encoding mode setting. Default is QRCodeDataMode.Auto
Valid values are:
QRCodeDataMode.Auto
QRCodeDataMode.AlphaNumeric
QRCodeDataMode.Byte
QRCodeDataMode.Numeric
QRCodeDataMode.Kanji
QRCodeDataMode.Customer
qrcode. QRCodeDataMode = QRCodeDataMode.Auto
// Version setting. Valid value ranges from V1 to V40.
qrcode. QRCodeVersion = QRCodeVersion.V1;
// set FNC1 to encode GS1 compatile QR Code. Valid value are:
FNC1.First
FNC1.None
FNC1.Second
qrcode. FNC1Mode = None;
// Group function setting. Default is false.
qrcode. GroupEnabled = false;
// Locate position of the current symbol in sequence. Default is 0.
qrcode. GroupItemId = 0;
// Error correction level setting. Valid values are:
QRCodeECL.L
QRCodeECL.M
QRCodeECL.Q
QRCodeECL.H
qrcode. QRCodeECL = QRCodeECL.L;
// Extended Channel Interpretation
qrcode. QRCodeECI = 3;
Drag and Drop QR Code Linear Barcodes to C#.NET Form
- Download the QR Code barcode library SDK and unzip it. Copy the generation dll to your C#.NET project folder.
- After the installation, open your C#.NET project in Visual Studio.
- Right click Toolbox in Visual Studio then click (Choose Item) button. Click button (Browse) in the Choose Toolbox Items dialog.
- Find the C#.NET barcode dll, and then click (OK) button.
- The barcode items will be displayed in the (Component) section of the Tools Palette.
- Drag and drop the barcode control in the toolbox to your .NET Windows Form. Double click the barcode image in the forms.
- It is easy to draw and print barcode by using C# code.