locked
Bar Code and QR Code enquiry RRS feed

  • Question

  • User-527908287 posted
    Hello,
    Is it possible to create or add a Bar code or QR code scanner/reader to a website to scan products or documents. If yes, how is it done please?
    Thursday, March 19, 2020 8:20 PM

All replies

  • User426857743 posted

    You may take a look at Spire.Barcode library which supports reading and generating 1D & 2D barcodes.

    First, install spire.barcode via nuget: 

    Install-Package Spire.BarCode -Version 4.1.0

    Second, add the below code to read QR code:

    string[] data = Spire.Barcode.BarcodeScanner.Scan("QRCode.png", Spire.Barcode.BarCodeType.QRCode);

    Hope it helps.

    Friday, March 20, 2020 2:11 AM
  • User1535942433 posted

    Hi Donald416,

    Accroding to your description,as far as I think,you would need to access the hardware for that. If you don't care of spend,there are other codes to add QR code scanner/reader.

    More details,you could  refer to below article:

    https://forums.asp.net/t/1952271.aspx?QR+Code+Reader+for+Asp+net+Web+site

    Best regards,

    Yijing Sun

    Friday, March 20, 2020 2:18 AM
  • User-527908287 posted

    Hello Leon,
    Thank you but I have not tried it yet. I have two questions though;
    1. Will I have to be online for the whole process?
    2. Is there anything like a video tutorial to guide me through?

    Hello yij,
    Thank you very much. I have a question though; if I happen to get it right and then decide to convert my website into an app, will I still need to rewrite or alter the code I used to create the bar code reader?

    Friday, March 20, 2020 9:36 AM
  • User1535942433 posted

    Hi Donald416,

    Accroding to your description,I don't understand your requirment clearly.What's your app?

    If it is a mobile app,I think,you need to change your codes about the bar code reader.

    Best regards,

    Yijing Sun

    Monday, March 23, 2020 5:38 AM
  • User-527908287 posted

    Hi Yijing Sun,

    My school project is to build a website that will have three functions, which are:

    1. To store automobile information
    2. Store mobile phones' IMEI number and other mobile phone information
    3. Scan bar code and QR code

    Wouldn't that be possible? or is it that the scanner can only be done via an app and not a website, because I was thinking that bar codes can be scanned on a webpage with a functional button to scan code via a webcam. Also, I will convert the website into an app, instead of building a new app with the same functions so that I have both platforms with the functions. I hope you understand what I mean

    Thank you,

    Donald Simon

    Monday, March 23, 2020 8:40 AM
  • User475983607 posted

    Hi Yijing Sun,

    My school project is to build a website that will have three functions, which are:

    1. To store automobile information
    2. Store mobile phones' IMEI number and other mobile phone information
    3. Scan bar code and QR code

    Wouldn't that be possible? or is it that the scanner can only be done via an app and not a website, because I was thinking that bar codes can be scanned on a webpage with a functional button to scan code via a webcam. Also, I will convert the website into an app, instead of building a new app with the same functions so that I have both platforms with the functions. I hope you understand what I mean

    Thank you,

    Donald Simon

    This is a duplicate thread; https://forums.asp.net/p/2165193/6298083.aspx?Need+a+direction

    The last thread went through the same clarifying questions.  Once clarified the community provided links to resource that illustrates  how to take a still pictures with a web camera using using JS.   

    Monday, March 23, 2020 11:51 AM