# Best QR Code Generator for Web Apps?

**URL:** <https://forum.xojo.com/t/best-qr-code-generator-for-web-apps/84537>\
**Category:** Web\
**Created:** [March 10, 2025, 6:12pm UTC](https://forum.xojo.com/t/best-qr-code-generator-for-web-apps/84537 "2025-03-10T18:12:01Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![William\_Reynolds](https://forum.xojo.com/user_avatar/forum.xojo.com/william_reynolds/32/565_2.png) [@William\_Reynolds](https://forum.xojo.com/u/William_Reynolds)\
**Post date:** [March 10, 2025, 6:12pm UTC](https://forum.xojo.com/t/best-qr-code-generator-for-web-apps/84537/1 "2025-03-10T18:12:02Z")

</div>

I’m setting out on a new project, need to generate QR codes within a WebApp. Is there a 2025 ‘best’ Plug-In for Barcode and QR Code generation in WebApps?

---

<div class="post-metadata">

**Author:** ![MarkusR](https://forum.xojo.com/user_avatar/forum.xojo.com/markusr/32/685_2.png) [@MarkusR](https://forum.xojo.com/u/MarkusR)\
**Post date:** [March 10, 2025, 6:40pm UTC](https://forum.xojo.com/t/best-qr-code-generator-for-web-apps/84537/2 "2025-03-10T18:40:06Z")

</div>

seems the barcode class can create a qr code via image method  
[https://documentation.xojo.com/api/hardware/barcode.html#barcode-image](https://documentation.xojo.com/api/hardware/barcode.html#barcode-image)

```auto
Var b As New Barcode

Var pic As Picture = b.Image("Hello", 320, 320, Barcode.Types.QR)

ImageViewer1.Image = pic

```

 ![grafik](https://forum.xojo.com/uploads/default/original/3X/f/c/fcd005bdc7fc412c6920c02cd7384a147c0eb6ee.png)

---

<div class="post-metadata">

**Author:** ![Tim\_Parnell](https://forum.xojo.com/user_avatar/forum.xojo.com/tim_parnell/32/161_2.png) [@Tim\_Parnell](https://forum.xojo.com/u/Tim_Parnell)\
**Post date:** [March 10, 2025, 6:53pm UTC](https://forum.xojo.com/t/best-qr-code-generator-for-web-apps/84537/3 "2025-03-10T18:53:20Z")

</div>

I had a user report the Barcode class failing on headless Linux servers.

The Xojo Code

```auto
var URI as String = toURI( user, service )
try
  #if TargetMacOS or TargetWindows or TargetDesktop then
    Return Barcode.Image( URI, width, height )
  #endif
catch e as RuntimeException
  Return nil
end try

```

The crash reported through stderr

```plaintext
Jul 26 08:04:40 demo demo42001[828]: Failed to load plugin libBarcode64.so:
Jul 26 08:04:40 demo demo42001[828]: libgtk-3.so.0: cannot open shared object file: No such file or directory

```

The time I told Xojo Staff about it

> [@Crash with barcode class when building with Xojo2024R2 and using macOS 10.14](https://forum.xojo.com/t/crash-with-barcode-class-when-building-with-xojo2024r2-and-using-macos-10-14/80975/17):
>
> @Javier_Menendez I received a report from a Web user that an issue just like this is occurring with Web because headless Linux doesn’t have GTK. Please set the platform support flags in the Barcode plugin appropriately so that using Barcode in Console or Web causes a compiler error. This will help people find issues before they even reach runtime. Thankfully [the documentation](https://documentation.xojo.com/api/hardware/barcode.html#compatibility) is correct and we were able to track down the issue quickly. To illustrate how useful this can be, here’s what happens …

Would be interesting to know if this is still happening.

---

<div class="post-metadata">

**Author:** ![Anthony\_G\_Cyphers](https://forum.xojo.com/user_avatar/forum.xojo.com/anthony_g_cyphers/32/16862_2.png) [@Anthony\_G\_Cyphers](https://forum.xojo.com/u/Anthony_G_Cyphers)\
**Post date:** [March 10, 2025, 11:34pm UTC](https://forum.xojo.com/t/best-qr-code-generator-for-web-apps/84537/4 "2025-03-10T23:34:33Z")

</div>

I still offer [GraffitiQRCode](https://demo.graffitisuite.com/#qrcode).

---

<div class="post-metadata">

**Author:** ![William\_Reynolds](https://forum.xojo.com/user_avatar/forum.xojo.com/william_reynolds/32/565_2.png) [@William\_Reynolds](https://forum.xojo.com/u/William_Reynolds)\
**Post date:** [March 11, 2025, 3:34am UTC](https://forum.xojo.com/t/best-qr-code-generator-for-web-apps/84537/5 "2025-03-11T03:34:33Z")

</div>

Hi @Tim_Parnell it sure looks like an issue when deploying to Xojo Cloud servers.

The moment I add this line `Var pic As Picture = b.Image("Hello", 100, 100, Barcode.Types.QR)` to my WebApp project, it causes it to immediately crash on the Xojo Servers ☹

---

<div class="post-metadata">

**Author:** ![William\_Reynolds](https://forum.xojo.com/user_avatar/forum.xojo.com/william_reynolds/32/565_2.png) [@William\_Reynolds](https://forum.xojo.com/u/William_Reynolds)\
**Post date:** [March 11, 2025, 3:42am UTC](https://forum.xojo.com/t/best-qr-code-generator-for-web-apps/84537/6 "2025-03-11T03:42:33Z")

</div>

Hi @Anthony_G_Cyphers , while I try to lean towards Xojo-native solutions wherever possible, this may be one of those cases where I simple can’t. I’ll be heading to your site shortly 🙂

---

<div class="post-metadata">

**Author:** ![Christian\_Schmitz](https://forum.xojo.com/user_avatar/forum.xojo.com/christian_schmitz/32/158_2.png) [@Christian\_Schmitz](https://forum.xojo.com/u/Christian_Schmitz)\
**Post date:** [March 11, 2025, 9:01am UTC](https://forum.xojo.com/t/best-qr-code-generator-for-web-apps/84537/7 "2025-03-11T09:01:48Z")

</div>

[MBS Xojo Plugins](https://www.monkeybreadsoftware.de/xojo/) can also do barcodes with the [BarcodeGeneratorMBS](https://www.monkeybreadsoftware.net/class-barcodegeneratormbs.shtml) class.

Always depends on what exactly you need.  
Picture object, JPEG/PNG image or vector graphics, maybe in a PDF?  
Colors? ECC Level? With squares or circles?

---

<div class="post-metadata">

**Author:** ![DerkJ](https://forum.xojo.com/letter_avatar_proxy/v4/letter/d/e495f1/32.png) [@DerkJ](https://forum.xojo.com/u/DerkJ)\
**Post date:** [March 11, 2025, 9:29am UTC](https://forum.xojo.com/t/best-qr-code-generator-for-web-apps/84537/8 "2025-03-11T09:29:04Z")

</div>

It’s a shared method call it like:

`Var pic As Picture = Barcode.Image("Hello", 100, 100, Barcode.Types.QR)`

---

<div class="post-metadata">

**Author:** ![Anthony\_G\_Cyphers](https://forum.xojo.com/user_avatar/forum.xojo.com/anthony_g_cyphers/32/16862_2.png) [@Anthony\_G\_Cyphers](https://forum.xojo.com/u/Anthony_G_Cyphers)\
**Post date:** [March 11, 2025, 9:33am UTC](https://forum.xojo.com/t/best-qr-code-generator-for-web-apps/84537/9 "2025-03-11T09:33:53Z")

</div>

The last time I tried, it wasn’t supported on Console or Web targets. I believe that’s the issue.

---

<div class="post-metadata">

**Author:** ![DerkJ](https://forum.xojo.com/letter_avatar_proxy/v4/letter/d/e495f1/32.png) [@DerkJ](https://forum.xojo.com/u/DerkJ)\
**Post date:** [March 11, 2025, 9:35am UTC](https://forum.xojo.com/t/best-qr-code-generator-for-web-apps/84537/10 "2025-03-11T09:35:54Z")

</div>

But the docs say:

> ## Compatibility
> 
> Desktop, iOS and Android projects types on all supported operating systems.

And below the method states only android is not supported

But still can be that console (and web) is not supported.

---

<div class="post-metadata">

**Author:** ![Anthony\_G\_Cyphers](https://forum.xojo.com/user_avatar/forum.xojo.com/anthony_g_cyphers/32/16862_2.png) [@Anthony\_G\_Cyphers](https://forum.xojo.com/u/Anthony_G_Cyphers)\
**Post date:** [March 11, 2025, 9:36am UTC](https://forum.xojo.com/t/best-qr-code-generator-for-web-apps/84537/11 "2025-03-11T09:36:51Z")

</div>

But not Console or Web. If they were supported, they’d be listed.

---

<div class="post-metadata">

**Author:** ![DerkJ](https://forum.xojo.com/letter_avatar_proxy/v4/letter/d/e495f1/32.png) [@DerkJ](https://forum.xojo.com/u/DerkJ)\
**Post date:** [March 11, 2025, 9:55am UTC](https://forum.xojo.com/t/best-qr-code-generator-for-web-apps/84537/12 "2025-03-11T09:55:18Z")

</div>

Ah true

---

<div class="post-metadata">

**Author:** ![William\_Reynolds](https://forum.xojo.com/user_avatar/forum.xojo.com/william_reynolds/32/565_2.png) [@William\_Reynolds](https://forum.xojo.com/u/William_Reynolds)\
**Post date:** [March 11, 2025, 2:44pm UTC](https://forum.xojo.com/t/best-qr-code-generator-for-web-apps/84537/14 "2025-03-11T14:44:28Z")

</div>

Hi Christian,  
In this instance the project requires the following…  
1.- WebApp, across all kinds of browsers.  
2.- The user would complete a transaction and the app generates a label to be printed.  
3.- The label would contain (2) QR codes, and some other data (Name, Account, etc.).  
4.- The QR would be simple black (thermal label printer), square, and very plain.  
5.- Label would be a ‘Picture’ in the WebApp, to be printed to users local (Dymo label) printer.

---

<div class="post-metadata">

**Author:** ![Christian\_Schmitz](https://forum.xojo.com/user_avatar/forum.xojo.com/christian_schmitz/32/158_2.png) [@Christian\_Schmitz](https://forum.xojo.com/u/Christian_Schmitz)\
**Post date:** [March 11, 2025, 3:08pm UTC](https://forum.xojo.com/t/best-qr-code-generator-for-web-apps/84537/15 "2025-03-11T15:08:16Z")

</div>

Our plugin runs on the server for the web app and could make a PDF or picture with the barcode.  
No idea how you like to send it to the local printer on the client computer.

Or you use a HTMLWebViewer and show a barcode there. then print in the browser to the label printer?

---

<div class="post-metadata">

**Author:** ![Steve\_Wilson](https://forum.xojo.com/letter_avatar_proxy/v4/letter/s/9fc348/32.png) [@Steve\_Wilson](https://forum.xojo.com/u/Steve_Wilson)\
**Post date:** [March 11, 2025, 3:20pm UTC](https://forum.xojo.com/t/best-qr-code-generator-for-web-apps/84537/16 "2025-03-11T15:20:39Z")

</div>

[qrcode.js](https://davidshimjs.github.io/qrcodejs/)

---

<div class="post-metadata">

**Author:** ![William\_Reynolds](https://forum.xojo.com/user_avatar/forum.xojo.com/william_reynolds/32/565_2.png) [@William\_Reynolds](https://forum.xojo.com/u/William_Reynolds)\
**Post date:** [March 11, 2025, 3:30pm UTC](https://forum.xojo.com/t/best-qr-code-generator-for-web-apps/84537/17 "2025-03-11T15:30:28Z")

</div>

My goal would be to use the `WebHTMLViewer` and call it’s Print method. I’ve tested it with WebPicture data and this seems like a viable solution.

---

<div class="post-metadata">

**Author:** ![Ricardo\_Cruz](https://forum.xojo.com/user_avatar/forum.xojo.com/ricardo_cruz/32/7852_2.png) [@Ricardo\_Cruz](https://forum.xojo.com/u/Ricardo_Cruz)\
**Post date:** [March 11, 2025, 4:43pm UTC](https://forum.xojo.com/t/best-qr-code-generator-for-web-apps/84537/18 "2025-03-11T16:43:32Z")

</div>

We are working at the moment on the Xojo Cloud issue, to make the Barcode generation compatible.

@Anthony_G_Cyphers already created a bug report (Thanks Anthony!), [Issue #76088](https://tracker.xojo.com/xojoinc/xojo/-/issues/76088).

---

<div class="post-metadata">

**Author:** ![Ricardo\_Cruz](https://forum.xojo.com/user_avatar/forum.xojo.com/ricardo_cruz/32/7852_2.png) [@Ricardo\_Cruz](https://forum.xojo.com/u/Ricardo_Cruz)\
**Post date:** [March 12, 2025, 5:28pm UTC](https://forum.xojo.com/t/best-qr-code-generator-for-web-apps/84537/19 "2025-03-12T17:28:14Z")

</div>

This should be fixed already in Xojo Cloud, can you guys give it a try?

---

<div class="post-metadata">

**Author:** ![Anthony\_G\_Cyphers](https://forum.xojo.com/user_avatar/forum.xojo.com/anthony_g_cyphers/32/16862_2.png) [@Anthony\_G\_Cyphers](https://forum.xojo.com/u/Anthony_G_Cyphers)\
**Post date:** [March 12, 2025, 5:39pm UTC](https://forum.xojo.com/t/best-qr-code-generator-for-web-apps/84537/20 "2025-03-12T17:39:35Z")

</div>

Excellent! Is this coming for 2025R1 or did you do something on the server-side to workaround the lack of support that we won’t be able (or want) to do on our own servers?

---

<div class="post-metadata">

**Author:** ![Ricardo\_Cruz](https://forum.xojo.com/user_avatar/forum.xojo.com/ricardo_cruz/32/7852_2.png) [@Ricardo\_Cruz](https://forum.xojo.com/u/Ricardo_Cruz)\
**Post date:** [March 12, 2025, 5:41pm UTC](https://forum.xojo.com/t/best-qr-code-generator-for-web-apps/84537/21 "2025-03-12T17:41:21Z")

</div>

Travis made a fix server-side, so Xojo versions supporting Barcode can be re-deployed again and they should work fine.

Edit: libgtk was missing, causing apps using Barcode to fail to start.

[Next page](https://forum.xojo.com/t/best-qr-code-generator-for-web-apps/84537.md?page=2)
