According to your description and needs, about how to scan the QR code and show data in textbox, I make a sample, please check:
Sample Code:
You can install ZXing.Net using Package Manager console:
Install-Package ZXing.Net
Page: <div>
<asp:Button ID="Show" runat="server" Text="Show Data" OnClick="Button1_Click" />
<asp:TextBox ID="Content" runat="server"></asp:TextBox>
</div>
using ZXing;
using System.Drawing;
protected void Button1_Click(object sender, EventArgs e)
{
var reader = new BarcodeReader();
String FullPath = MapPath(@"~\QRCode.jpg");
var result = reader.Decode(new Bitmap(FullPath));
Content.Text = result.Text;
}
Tested Image:
Result:
Best Regards,
Eric Du
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
Member
399 Points
1101 Posts
Doubt On BarCode Decode
Oct 25, 2017 06:45 AM|asp.ambur|LINK
Hello
As I'm a new to QR Barcode concept need help on my doubts
1) For example : I have one QR Barcode Sticker, how to show that bar code data in asp.net Textbox..?
2) Is i have to purchase any hardware device and connect to computer.
Waiting For Your Reply
Thanking You
All-Star
52091 Points
23212 Posts
Re: Doubt On BarCode Decode
Oct 25, 2017 11:28 AM|mgebhard|LINK
You asked this same question here https://forums.asp.net/t/2130688.aspx?How+To+Retrive+QR+Code+Data+In+Textbox where you marked an answer as correct.
Did you try setting the focus on a textbox and scan? What kind of scanner do you have? Did you try contacting support for the scanner?
Member
399 Points
1101 Posts
Re: Doubt On BarCode Decode
Oct 25, 2017 01:45 PM|asp.ambur|LINK
Let's forget any device
Just give me a idea with complete details how to scan bar code and show bar code data.
For scan how to do.. give me your idea with best simple options
Contributor
6730 Points
2715 Posts
Re: Doubt On BarCode Decode
Oct 26, 2017 02:35 AM|Eric Du|LINK
Hi asp.ambur,
According to your description and needs, about how to scan the QR code and show data in textbox, I make a sample, please check:
Sample Code:
You can install ZXing.Net using Package Manager console:
Tested Image:
Result:
Best Regards,
Eric Du
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.