QR Code Barcode FAQ for ASP.NET

ASP.NET Web Server Control Generator, QR Code Barcode Image, Data, and Size Issues
Terrek Barcode for ASP.NET - QR Code Barcode FAQ
QR Code ASP.NET Barcode Generator is a functional Control DLL developed for the need of printing QR Code in ASP.NET. It was originally written by managed code in C#. The QR Code generation features could be used via Microsoft IIS as well.
More details of the following aspects of QR Code barcode generation in .NET Winform are presented in this page:
  • QR Code in ASP.NET Generator SDK- Data Encoding Support
  • QR Code in ASP.NET Generator SDK- Barcode Scaling Support
  • QR Code in ASP.NET Generator SDK- Image Setting Support
  • QR Code in ASP.NET Generator SDK- Solution Projects Support
Terrek also provides more QR Code barcode generators for solutions in distinct developing environments, including QR Code .NET Winforms Generator, QR Code RDLC Generator, QR Code Office Add-in for Excel, and QR Code Java generator.
QR Code in ASP.NET Generator SDK- Data Encoding Support
QR Code Valid Data
Data meets one of the following requirements could be encoded by a QR Code symbol:
  • Numeric only(0, 1, 2, 3, 4, 5, 6, 7, 8, 9): less than 7,089 characters
  • Alphanumeric(0-9, A-Z [upper-case only], space, $, %, *, +, -, ., /, :): less than 4,296 characters
  • Binary/byte (8-bit bytes) (23624 bits): less than to 2,953 characters
  • Kanji/Kana: less than to 1,817 characters
Sample URL: http://YourDomain:Port/barcode/aspcontrol.aspx?Symbology=42&BarcodeData =Terrek QRCode;
QR Code ASP.NET Control Data Mode
Five data mode options are provided by QR Code ASP.NET Control for data encoding, and they are:
  • QRCodeDataMode.Auto(0): It allows encoding all 256 possible 8-bit byte values. This includes all ASCII characters value from 0 to 127 inclusive and provides for international character set support
  • QRCodeDataMode.AlphaNumeric(1): It allows encoding alphanumeric data (digits 0 - 9; upper case letters A -Z; nine other characters: space, $ % * + - . / : ).
  • QRCodeDataMode.Byte(2): It allows encoding byte data (default: ISO/IEC 8859-1).
  • QRCodeDataMode.Numeric(3): It allows encoding numeric data (digits 0 - 9).
  • QRCodeDataMode.Kanji(4): It allows encoding Kanji characters.
Sample URL: http://YourDomain:Port/barcode/aspcontrol.aspx?Symbology=42&BarcodeData=Terrek&QRCodeDataMode=0;
QR Code in ASP.NET Generator SDK- Barcode Scaling Support
QR Code Module Width
The smallest unit of QR Code is module. Module is a tiny square cell with the dark or light color. The size of the module is measured by the float value of BarWidth property. Pixel, cm, and inch could be used as the unit of measure.
Sample URL: http://YourDomain:Port/barcode/aspcontrol.aspx?Symbology=42&BarWidth=2;
QR Code Version
QR Code version defines how many modules are included in the generated QR Code symbol. V1 to V40 could be selected.
Sample URL: http://YourDomain:Port/barcode/aspcontrol.aspx?Symbology=42&QRCodeVersions=V10;
Margins Width
Increasing the width of margins around the symbol is one way to enhance the readability of the QR Code barcode image. The control library set the left, right, top, and bottom margins separately with float values.
Sample URL: http://YourDomain:Port/barcode/aspcontrol.aspx?Symbology=42& MarginL=10& MarginR=10& MarginT=10& MarginB=10;
Image Size
If the breakdown parameters are not provided, you can set the width and height of the barcode image directly. Once you enabled the image resize function, you only need to provide the size of entire barcode image. This intelligent QR Code will draw the barcode with reasonable parameters. The generated QR Code is 100% compatible with ISO / IEC 18004 (2nd edition 2006-09-01).
Sample URL: http://YourDomain:Port/barcode/aspcontrol.aspx?Symbology=42& ImageResize=true&ImageWidth=150&ImageHeight=150;
QR Code in ASP.NET Generator SDK- Image Setting Support
Image Formats
With Terrek Barcode ASP.NET Control DLL, QR Code is created as high quality GIF, JPEG, or PNG graphic images. Tiff and Bitmap are supported as well. Please ensure the accordance of image format and suffix of image file name.
Sample URL: http://YourDomain:Port/barcode/aspcontrol.aspx?Symbology=42& ImageFormat=Png;
Image Resolution
DPI (Dots per inch) is used commonly as the measure of printing resolution. The resolution of image generated by QR Code generator could be managed with DPI.
Sample URL: http://YourDomain:Port/barcode/aspcontrol.aspx?Symbology=42& DotsPerInch=96;
Image Rotation
In case of any specified requirement of the image orientation, image rotation function is added to the control library. Rotation angles of 90, 180, and 270 degrees are supported.
Sample URL: http://YourDomain:Port/barcode/aspcontrol.aspx?Symbology=42& Rotation=Degree90;
QR Code in ASP.NET Generator SDK- Solution Projects Support
The following types of .NET projects are also supported by QR Code Generator Control:
  • ASP.NET Web Site (design-time and runtime support)
  • .NET Web Service Project (runtime support)
  • Console Application (runtime support)
  • Class Library (runtime support)