|
.NET Barcode >
.NET Barcode Generate Guide >
.NET QR-Code Generator for .NET, C#, ASP.NET, VB.NET
.NET QR-Code Generator for .NET, C#, ASP.NET, VB.NET
Create & Generate QR-Code Barcodes in C#, VB.NET, ASP.NET
QR Code is a matrix code (or two-dimensional bar code) created by Japanese corporation Denso-Wave in 1994. The "QR" is derived from "Quick Response", as the creator intended the code to allow its contents to be decoded at high speed.
.NET QRCode Generator prints:
- numeric data (digits 0 - 9);
- alphanumeric data (digits 0 - 9; upper case letters A -Z; nine other characters: space, $ % * + - . / : );
- byte data (default: ISO/IEC 8859-1);
- Kanji characters.
1. How to generate QR-Code barcodes in C# Class?
using BusinessRefinery.Barcode;
// construct a QRCode barcode object
QRCode barcode = new QRCode();
// set QR-Code code text to encode
barcode.Code = "QRCode in C#";
//draw barcode and save QR-Code into image file in gif format
barcode.drawBarcode2ImageFile("qrcode-in-csharp.gif");
|
2. How to generate QR-Code barcodes in VB.NET Class?
// construct a QRCode barcode object
Dim barcode As BusinessRefinery.Barcode.QRCode
barcode = New BusinessRefinery.Barcode.QRCode()
// set QR-Code code text to encode
barcode.Code = "QRCode in VB.NET"
//draw barcode and save QR-Code into image file in gif format
barcode.drawBarcode2ImageFile("qrcode-in-vbnet.gif")
|
3. How to draw QR-Code barcodes to image files (GIF, JPEG, BMP, PNG, & TIFF)?
using BusinessRefinery.Barcode;
QRCode barcode = new QRCode();
barcode.Code = "Create QRCode in C#";
barcode.drawBarcode2ImageFile("qrcode-in-csharp.gif");
You can draw other file formats, by change file types to .jpg, .bmp, .png, and .tif.
4. How to draw & print QR-Code barcodes to .NET objects like Graphics, Stream, Bitmap?
using BusinessRefinery.Barcode;
QRCode barcode = new QRCode();
barcode.Code = "Generate QRCode in C#.NET";
barcode.drawBarcode2Stream("Stream object");
Bitmap barcodeInBitmap = barcode.drawBarcodeOnBitmap();
barcode.drawBarcodeOnGraphics("Graphics object");
5. How to create QR-Code barcodes in C# or VB.NET Windows Application using .NET Barcode Generator Windows Control Library?
-
add BusinessRefinery.Barcode.Win.dll to your .NET Windows Application project reference
-
add .NET Barcode Generator .NET Windows Control Library to .NET Visual Studio Toolbox
6. How to create QR-Code barcodes in ASP.NET Web Application using ASP.NET Barcode Generator Web Control Library?
-
add BusinessRefinery.Barcode.Web.dll to your ASP.NET project reference
-
add ASP.NET Barcode Generator ASP.NET Web Control Library to .NET Visual Studio Toolbox
Basic
-
Code : QR-Code encoding data value.
HTTP Parameter: code;
Default Value: ""
-
DataMode : QR-Code encoding data mode.
HTTP Parameter: data-mode;
Default Value: 0 (MODE_AUTO)
-
ProcessTilde
HTTP Parameter: process-tilde;
Default Value: false
-
FNC1Mode
HTTP Parameter: fnc1-mode;
Default Value: 0 (FNC1_NONE)
-
ECL : QR-Code error correction level.
HTTP Parameter: ecl;
Default Value: 0 (ECL_L)
-
ECI : Valid values are from 000000 to 999999.
HTTP Parameter: eci;
Default Value: 3 (ECI_DEFAULT)
-
AI : Application Indicator
HTTP Parameter: ai;
Default Value: 0
-
Version
HTTP Parameter: version;
Default Value: 1
Barcode Size
-
BarcodeUnit : Unit of meature for all size related properties. 0: Pixel (default); 1: CM; 2: Inch.
HTTP Parameter: barcode-unit;
Default Value: 0 (UOM_PIXEL)
-
ModuleSize : bar module width & height, default is 3 pixel
HTTP Parameter: module-size;
Default Value: 3.0f
-
LeftMargin : generated barcode image left margin
HTTP Parameter: left-margin;
Default Value: 0.0f
-
RightMargin : generated barcode image right margin
HTTP Parameter: right-margin;
Default Value: 0.0f
-
TopMargin : generated barcode image top margin
HTTP Parameter: top-margin;
Default Value: 0.0f
-
BottomMargin : generated barcode image bottom margin
HTTP Parameter: bottom-margin;
Default Value: 0.0f
-
Resolution : generated data matrix image resolution in dpi
HTTP Parameter: resolution;
Default Value: 72 dpi
-
Rotate : barcode data matrix rotate angle, valid values: 0 (ROTATE_0), 1 (ROTATE_90), 2 (ROTATE_180), 3 (ROTATE_270)
HTTP Parameter: rotate;
Default Value: 0 (ANGLE_0)
-
BarcodeWidth
HTTP Parameter: barcode-width;
Default Value: 0
-
BarcodeHeight
HTTP Parameter: barcode-height;
Default Value: 0
Multiple QR-Code
-
StructuredAppend
HTTP Parameter: structured-append;
Default Value: false
-
SymbolCount
HTTP Parameter: symbol-count;
Default Value: 0
-
SymbolIndex
HTTP Parameter: symbol-index;
Default Value: 0
-
Parity
HTTP Parameter: parity;
Default Value: 0
-
Linear Barcodes
-
QR-Code
- QRCode with structured append, UPS encoding and mode 2-6 support.
-
Data Matrix
- Data Matrix with ECC200, ASCII, text, C40 and Base256 encoding, Extended Channel Interpretation and Structured append.
-
PDF-417
- PDF417 with EC levels 1 to 8, text and binary encoding.
-
GS1 DataBar
- GS1 DataBar [formerly Reduced Space Symbology (RSS)]
|