Barcode / QR code reader in WinJS for Windows Metro App RRS feed

  • Question

  • Hi,

    Im developing a Windows Metro App using Win JS for Windows Surface.

    IDE: Microsoft Visual Studio Express 2012.

    Is there any api (compatible with Win JS) which can be used for reading / scanning Barcodes / QR codes?

    I found the ZXing library which can be used in applications developed using XAML / C#, but nothing for Win JS.



    Monday, April 22, 2013 12:14 PM


All replies

  • Hi Spettro,

    Although HTML5+JS based windows store app cannot directly use .NET/C# code, we can build custom Windows Runtime library via C# or VB.NET and use the library in windows store application.

    #Creating Windows Runtime Components in C# and Visual Basic

    #Walkthrough: Creating a simple component in C# or Visual Basic and calling it from JavaScript

    Therefore, you can search for some barcode or QR code parsing code (.NET C# or VB.NET based) and encapsulatethem into a windows runtime library.

    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Tuesday, April 23, 2013 2:35 AM
  • The ZXing.Net library can be used with HTML/JS based Windows Metro Apps.
    There is a WinMD (WinRT Component) version of the library.

    And there is a JS sample project:

    - Michael
    (the guy behind ZXing.Net)

    • Marked as answer by Song Tian Friday, April 26, 2013 8:29 AM
    Wednesday, April 24, 2013 6:21 AM
  • Thanks Micheal and Steven,

    I referred to the JS sample project link that Micheal had posted and this proved very helpful.

    Thanks a lot for both your inputs.

    - Spettro

    Wednesday, April 24, 2013 7:18 AM
  • I had similar requirements in the near past.  And I searched but I only few free toolkits that is compatible WinJS. I tried some two of them, but they had some performance issues related to speed and accuracy.
    But I ended up using leadtools, I know that they have support for WinRT Metro both C# and JS platforms.
    They have free evaluation period and you can download it using their site.
    Thursday, October 31, 2013 3:56 PM
  • There is a JavaScript port of ZXing here:  github.com/LazarSoft/jsqrcode
    Tuesday, June 17, 2014 11:37 AM
  • Hey Michael, any chance your lib could be also used on live preview images so that the barcode scanning works more like traditional hardware barcode scanners that constantly capture and analyse a camera stream?
    Wednesday, June 18, 2014 10:43 PM
  • Sorry for my late answer. I didn't see your question earlier.

    Yes, of course. The library isn't restricted to any particular way of capturing images.
    But it is in your responsibility to integrate the library with an image source of your choise.

    Monday, March 16, 2015 9:48 PM