PDA

View Full Version : Using a Barcode Reader with ASP or ASP.NET



lynn
05-13-2012, 09:54 PM
I am trying to make a coupon with some links and details of our products in the QR Code. I am planning to use visual basic to make a web based image. Is it possible? Need more info and if some example code will be greatly appreciated.

Ida
05-14-2012, 09:43 PM
QR Code is able to encode many sorts of characters, so it is possible to encode url and text. You may need to install a qr code generator control for your website application.

William-59
05-14-2012, 11:29 PM
There should be web controls working as barcode generators. Make sure the generator you find supports qr code.

sabrinasai
05-15-2012, 12:17 AM
QR Code (abbreviated from Quick Response Code) is the trademark for a type of matrix barcode (or two-dimensional code) first designed for the automotive industry. More recently, the system has become popular outside the industry due to its fast readability and large storage capacity compared to standard UPC barcodes.They can be able to encode both URL and text. Install QR Code Generator, it would help you.

Ashbur
05-15-2012, 02:54 AM
Here is some QR code generation code in asp.net using C#:
QRCode qrcode = new QRCode();

// Barcode data to encode
qrcode.Data = "blablabla";
// QR-Code data mode
qrcode.DataMode = QRCodeDataMode.AlphaNumeric;
// QR-Code format mode
//qrcode.Version = QRCodeVersion.V10;
// Unit of mature for all size related setting in the library.
qrcode.UOM = UnitOfMeasure.PIXEL;
// Bar module size (X), default is 3 pixel;
qrcode.X = 3;
// Generate QR-Code and encode barcode to gif format
qrcode.ImageFormat = ImageFormat.Gif;
qrcode.drawBarcode("C:\\barcodeimages\\qrcode.gif");

fra
05-15-2012, 05:18 AM
Hi, search one barcode control supports web apps and based on the vb-programs. referenced the dll to the vs, then adding the codes to create qr code.

adelali
01-20-2013, 11:00 PM
Barcode Reader for .NET (http://www.businessrefinery.com/products/barcode_reader_net/main.html) is built entirely in Visual C#, and it supports .NET 2.0, 3.0, 3.5 and above versions. This control is very easy to install into your .NET, ASP.NET, Visual C# and VB.NET applications. A purchased version is royalty-free for a developer license and offers a free 30-day premier support. Start now by downloading a free trial version!

fdgerrdfs
01-24-2013, 02:42 AM
I am trying to make a coupon with some links and details of our products in the QR Code. I am planning to use visual basic to make a web based image. Is it possible? Need more info and if some example code will be greatly appreciated.
I recommend you a source to visit. This is the .NET QR Code barcode reader (http://www.onbarcode.com/products/net_barcode_reader/barcodes/qrcode.html) I am using now. Of course, it is possible to use Visual Basic to make a web based image. See this VB.NET QR Code barcode generator SDK with detailed guide (http://www.onbarcode.com/vb_net/qr-code-generator.html).
The following is the sample code:
Imports OnBarcode.Barcode


Dim barcode As QRCode = New QRCode

' QRCode Barcode Basic Settings

' QRCode Valid data char set:
' 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)
barcode.Data = "112233445566"

barcode.DataMode = QRCodeDataMode.Auto
barcode.Version = QRCodeVersion.V1
barcode.ECL = QRCodeECL.L

' Set the ProcessTilde property to true, if you want use the tilde character "~"
' to specify special characters in the input data. Default is false.
'
' 1) 1-byte character: ~0dd/~1dd/~2dd (character value from 000 ~ 255);
' ASCII character '~' is presented by ~126;Strings from "~256" to "~299" are unused
' modified to FS, GS, RS and US respectively.
' 2) 2-byte character (Unicode): ~6ddddd (character value from 00000 ~ 65535)
' Strings from "~665536" to "~699999" are unused
' 3) for GS1 AI Code:
' ~ai2: AI with 2 digits
' ~ai3: AI with 3 digits
' ~ai4: AI with 4 digits
' ~ai5: AI with 5 digits
' ~ai6: AI with 6 digits
' ~ai7: AI with 7 digits
' 4) ECI: ~7dddddd (valid value of dddddd from 000000 to 999999)
' 5) SJIS: from ~9ddddd (Shift JIS 0x8140 ~ 0x9FFC and 0xE040 ~ 0xEBBF)
barcode.ProcessTilde = True

' Barcode Size Related Settings
barcode.UOM = UnitOfMeasure.PIXEL
barcode.X = 3
barcode.LeftMargin = 0
barcode.RightMargin = 0
barcode.TopMargin = 0
barcode.BottomMargin = 0
barcode.Resolution = 96
barcode.Rotate = Rotate.Rotate0

' Image format setting
barcode.ImageFormat = System.Drawing.Imaging.ImageFormat.Gif()

barcode.drawBarcode("c://qr-code.gif")

Dupont
04-11-2013, 06:22 AM
Here is what i found in google on image barcode creating in VB .NET (http://www.rasteredge.com/how-to/vb-net-imaging/barcode-generating/), and also some sample code is offered, of cause including qr code and other common linear barcode types.

Dim barcode as Barcode = new Barcode()
barcode.Symbology = BarcodeType.qrcode
barcode.Data = "01234567890"
barcode.Save(theImage, saveFileName, RasterImageFormat.Tif, theImage.BitsPerPixel)

mariah
07-08-2013, 04:27 AM
search on the internet ,from some codes you may find a good one .

blessy_smith
07-10-2013, 05:44 AM
Useful information you have shared here...

Zimmerman
12-08-2013, 09:43 PM
Install and implement this asp.net image barcode reader (http://www.rasteredge.com/how-to/asp-net-imaging/barcode-reading/) to detect and decode linear or 2d barcodes from image or document page within any asp.net application, including C# ASP.NET and VB ASP.NET platforms.

mariah
12-16-2013, 01:30 AM
actually, as for barcode reader,you may refer to this .net barcode recognition (http://www.keepautomation.com/guide/dotnet_barcode_reader.html),which is a reliable barcode reading component, written in managed C#, which helps .NET developers to quickly and easily add barcode recognition functionality to .NET projects.and supports qr code,code 39, code 128,pdf417 barcode, ean-13,data matrix (http://www.keepautomation.com/products/net_barcode_reader/barcode_data_matrix.html) etc.

andyadams
09-26-2014, 05:08 AM
Hi,I found a good solution that tells how to read & scan barcode in .NET Application (http://www.keepautomation.com/guide/dotnet_barcode_reader.html), including Visual Studio .NET, ASP.NET, C#, VB.NET applications.
Here is example code i hope will be useful for you:
Read Barcodes from Image File:
C# Sample code
String[] datas = BarcodeReader.readBarcode("C://csharp-sample-code128.png", BarcodeType.Code128);

VB Sample code
Dim datas As [String]() = BarcodeReader.readBarcode("C://vbnet-sample-code128.png", BarcodeType.Code128)
Scan Barcodes from .NET Image Object
C# Sample code

System.Drawing.Bitmap bmp = ...

String[] datas = BarcodeReader.readBarcode(bmp, BarcodeType.Code128);

VB Sample code

Dim bmp As System.Drawing.Bitmap = ...

Dim datas As [String]() = BarcodeReader.readBarcode(bmp, BarcodeType.Code128)