|
No. 1 Bar Code SDK Provider for Java/.NET/Objective-C Professionals
|
Generating Barcode QR-Code in .NET is one of the functions in OnBarcode's
.NET Barcode Generators, which supports
creating & printing QR-Code and 30+ other linear & 2D bar codes for C#, VB.NET & ASP.NET applications.
OnBarcode develops several .NET Barcode Generation components for different .NET development environments:
Barcode Generation in ASP.NET
- Creating barcodes in ASP.NET Web applications
Barcode Generation in Windows Forms
- Printing barcodes in C#, VB.NET Windows Forms applications
Barcode Generation in Reporting Service
- Drawing barcodes in Microsoft Reporting Service 2005 & 2008
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 QR Code Generator encodes:
Generating barcode QR-Code in C# Class example (C# Source Code to Create QR-Code barcodes)
QRCode qrcode = new QRCode(); qrcode.Data = "0123456789"; qrcode.X = 3; // Generate QR-Code and encode barcode to gif format qrcode.Format = ImageFormat.Gif; qrcode.drawBarcode("c#-qrcode.gif"); // Print QR-Code to C# Bitmap object Bitmap qrcodeBitmap = qrcode.drawBarcode();
Generating barcode QR-Code in VB.NET Class example
Dim qrcode As OnBarcode.Barcode.QRCode qrcode = New OnBarcode.Barcode.QRCode() qrcode.Data = "0123456789" qrcode.X = 3 // Generate QR-Code and encode barcode to png format qrcode.Format = ImageFormat.Png qrcode.drawBarcode("vbnet-qrcode.png") // Print QR-Code to vb.net Bitmap object Dim qrcodeBitmap As Bitmap qrcodeBitmap = qrcode.drawBarcode();
Creating QR-Code image in C# Class example
QRCode qrcode = new QRCode(); qrcode.Data = "0123456789"; qrcode.X = 3; // Create QR-Code and encode barcode to Jpeg format qrcode.Format = ImageFormat.Jpeg; qrcode.drawBarcode("C://csharp-qrcode.jpg");
Creating QR-Code image in VB.NET Class example
Dim qrcode As OnBarcode.Barcode.QRCode qrcode = New OnBarcode.Barcode.QRCode() qrcode.Data = "0123456789" qrcode.X = 3 // Create QR-Code and encode barcode to Jpeg format qrcode.Format = ImageFormat.Jpeg qrcode.drawBarcode("C://vbnet-qrcode.jpg")
To draw & print barcode QR-Code to C# objects:
public void drawBarcode(Graphics graphics); public void drawBarcode(string filename); public Bitmap drawBarcode(); public void drawBarcode(Stream fileStream);
To draw & print barcode QR-Code to VB.NET objects:
Public Sub drawBarcode(ByRef graphics As Graphics) Public Sub drawBarcode(ByVal filename As String) Public Function drawBarcode() As Bitmap Public Sub drawBarcode(ByRef fileStream As Stream)
| Category | Class Properties | WebStream Properties | Default | Comments | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Basic | Data | DATA | "QRCode" | value to encode | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| QRCode Special |
ProcessTilde | PROCESS-TILDE | true |
Set the ProcessTilde property to true, if you want use the tilde character "~" to specify special characters in the input data. Default is true.
~NNN: is used to represent the ASCII character with the value of NNN. NNN is from 000 - 255. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| DataMode | DATA-MODE | QRCodeDataMode.Auto (0) |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ECL | ECL | QRCodeECL.L (0) |
QRCode Error Correction Level. Default is QRCodeECL.L (0).
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ECI | ECI | 3 | Valid values are from 000000 to 999999. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| FNC1 | FNC1 | FNC1.FNC1_NONE (0) | valid values are:
FNC1.FNC1_NONE (0), FNC1.FNC1_1ST_POS (1), FNC1.FNC1_2ND_POS (2) |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ApplicationIndicator | AI | 0 | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| StructuredAppend | STRUCTURED-APPEND | false | Set StructuredAppend property to true, then Structured Append is enabled. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| SymbolCount | SYMBOL-COUNT | 0 | the number of total symbols which make the sequence. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| SymbolIndex | SYMBOL-INDEX | 0 | the position of current symbol in the secuence (Start with 0). | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Parity | PARITY | 0 | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Version | VERSION | 1 | Valid values are from 1 to 40. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Size Related | UOM | UOM | UnitOfMeasure.PIXEL (0) | Unit of meature for all size related setting in the library.
Valid values: UnitOfMeasure.PIXEL (0), UnitOfMeasure.CM (1), UnitOfMeasure.INCH (2) |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| X | X | 3 | barcode module width and height, default is 3 pixel | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| BarcodeWidth | BARCODE-WIDTH | 0 | barcode image width | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| BarcodeHeight | BARCODE-HEIGHT | 0 | barcode image height | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| LeftMargin | LEFT-MARGIN | 0 | image left margin | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| RightMargin | RIGHT-MARGIN | 0 | image right margin | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| TopMargin | TOP-MARGIN | 0 | image top margin | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| BottomMargin | BOTTOM-MARGIN | 0 | image bottom margin | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Resolution | RESOLUTION | 72 | in DPI | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Rotate | ROTATE | Rotate.Rotate0 (0) | valid values:
Rotate.Rotate0 (0), Rotate.Rotate90 (1), Rotate.Rotate180 (2), Rotate.Rotate270 (3) |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| In WebStream query string, please use int value for Enums, "true" and "false" for bool. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|