# QR Code Component and Generator

**URL:** <https://forum.inductiveautomation.com/t/qr-code-component-and-generator/3202>\
**Category:** Ignition\
**Created:** [August 21, 2011, 7:30pm UTC](https://forum.inductiveautomation.com/t/qr-code-component-and-generator/3202 "2011-08-21T19:30:10Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kyle\_Chase](https://avatars.discourse-cdn.com/v4/letter/k/9de0a6/32.png) [@Kyle\_Chase](https://forum.inductiveautomation.com/u/Kyle_Chase)\
**Post date:** [August 21, 2011, 7:30pm UTC](https://forum.inductiveautomation.com/t/qr-code-component-and-generator/3202/1 "2011-08-21T19:30:10Z")

</div>

Here is a signed, free module that creates a component that displays either a QR Code or UPC A code. You can get the bytes of this component with comp.getBytesPNG(). Also, there is a system script, system.qr.generateQRCode(String code, int width, int height), which will generate the QR code and return the byte array of the resultant PNG file. The system call also has keyword invocation, so it will default to creating a 100x100 png if you only pass in the code.  
[QRCode-module-signed.modl](https://us1.discourse-cdn.com/inductiveautomation/original/1X/bd0d1715356906e55137a14c2fcb36f67f8f15c3.modl) (126 KB)

---

<div class="post-metadata">

**Author:** ![Duffanator](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/duffanator/32/3560_2.png) [@Duffanator](https://forum.inductiveautomation.com/u/Duffanator)\
**Post date:** [August 24, 2011, 1:33pm UTC](https://forum.inductiveautomation.com/t/qr-code-component-and-generator/3202/2 "2011-08-24T13:33:21Z")

</div>

Just an FYI, it seems this module is not compatible with Java version 1.5.X. I added the module and anything running Java 6 was fine but our terminal servers, which run Java 5 currently, would not run the client after logging in, they would just sit at the log in screen and not do anything. After I uninstalled this module everything worked fine.

---

<div class="post-metadata">

**Author:** ![Kyle\_Chase](https://avatars.discourse-cdn.com/v4/letter/k/9de0a6/32.png) [@Kyle\_Chase](https://forum.inductiveautomation.com/u/Kyle_Chase)\
**Post date:** [September 4, 2011, 8:54am UTC](https://forum.inductiveautomation.com/t/qr-code-component-and-generator/3202/3 "2011-09-04T08:54:28Z")

</div>

Yeah it was compiled for Java 6+. Try this one, its compiled for Java 5+  
[QRCode-module-signed.modl](https://us1.discourse-cdn.com/inductiveautomation/original/1X/c5cf8cecc1c57426bd15ebe754a5db4839e70cd9.modl) (126 KB)

---

<div class="post-metadata">

**Author:** ![Duffanator](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/duffanator/32/3560_2.png) [@Duffanator](https://forum.inductiveautomation.com/u/Duffanator)\
**Post date:** [September 4, 2011, 2:32pm UTC](https://forum.inductiveautomation.com/t/qr-code-component-and-generator/3202/4 "2011-09-04T14:32:47Z")

</div>

Cool, thanks! I’ll check it out this week.

---

<div class="post-metadata">

**Author:** ![Kyle\_Chase](https://avatars.discourse-cdn.com/v4/letter/k/9de0a6/32.png) [@Kyle\_Chase](https://forum.inductiveautomation.com/u/Kyle_Chase)\
**Post date:** [September 14, 2011, 4:40pm UTC](https://forum.inductiveautomation.com/t/qr-code-component-and-generator/3202/5 "2011-09-14T16:40:33Z")

</div>

Did it end up working for you?

---

<div class="post-metadata">

**Author:** ![Duffanator](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/duffanator/32/3560_2.png) [@Duffanator](https://forum.inductiveautomation.com/u/Duffanator)\
**Post date:** [September 23, 2011, 7:32pm UTC](https://forum.inductiveautomation.com/t/qr-code-component-and-generator/3202/6 "2011-09-23T19:32:46Z")

</div>

Sorry, I completely forgot to respond 😊 Yes, it works much better now, thank you!

---

<div class="post-metadata">

**Author:** ![Travis.Cox](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@Travis.Cox](https://forum.inductiveautomation.com/u/Travis.Cox)\
**Post date:** [October 17, 2011, 7:31pm UTC](https://forum.inductiveautomation.com/t/qr-code-component-and-generator/3202/7 "2011-10-17T19:31:46Z")

</div>

Can you make a new QR Code module for Ignition 7.3 since the API changed a little?

---

<div class="post-metadata">

**Author:** ![denji26](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/denji26/32/5805_2.png) [@denji26](https://forum.inductiveautomation.com/u/denji26)\
**Post date:** [October 19, 2011, 3:39pm UTC](https://forum.inductiveautomation.com/t/qr-code-component-and-generator/3202/8 "2011-10-19T15:39:21Z")

</div>

Here is the QRCode Generator updated for Ignition 7.3 and API 3  
[QRCode-module-signed.modl](https://us1.discourse-cdn.com/inductiveautomation/original/1X/58990994eb432734c5a6a7e4a16d9f52b12b5106.modl) (126 KB)

---

<div class="post-metadata">

**Author:** ![jgreenewv](https://avatars.discourse-cdn.com/v4/letter/j/919ad9/32.png) [@jgreenewv](https://forum.inductiveautomation.com/u/jgreenewv)\
**Post date:** [August 15, 2012, 11:53pm UTC](https://forum.inductiveautomation.com/t/qr-code-component-and-generator/3202/9 "2012-08-15T23:53:31Z")

</div>

What are the chances of getting a version that will work with 7.5? 😃

---

<div class="post-metadata">

**Author:** ![drettberg](https://avatars.discourse-cdn.com/v4/letter/d/8edcca/32.png) [@drettberg](https://forum.inductiveautomation.com/u/drettberg)\
**Post date:** [March 11, 2013, 4:33pm UTC](https://forum.inductiveautomation.com/t/qr-code-component-and-generator/3202/10 "2013-03-11T16:33:55Z")

</div>

Yes, we need it for version 7.5 as well.

---

<div class="post-metadata">

**Author:** ![nathan](https://avatars.discourse-cdn.com/v4/letter/n/c5a1d2/32.png) [@nathan](https://forum.inductiveautomation.com/u/nathan)\
**Post date:** [March 11, 2013, 7:15pm UTC](https://forum.inductiveautomation.com/t/qr-code-component-and-generator/3202/11 "2013-03-11T19:15:39Z")

</div>

Planning on making the QR Code component available on the [Module Marketplace](http://marketplace.inductiveautomation.com/)?

---

<div class="post-metadata">

**Author:** ![Kyle\_Chase](https://avatars.discourse-cdn.com/v4/letter/k/9de0a6/32.png) [@Kyle\_Chase](https://forum.inductiveautomation.com/u/Kyle_Chase)\
**Post date:** [March 12, 2013, 6:35am UTC](https://forum.inductiveautomation.com/t/qr-code-component-and-generator/3202/12 "2013-03-12T06:35:16Z")

</div>

Hello All,  
Sorry for the delay, I didnt even see this posted. I have a version that supports 7.5, and yes, it will be on the module marketplace.

Before I release the new version, however, there is a bit of work needed to prepare your Ignition system. On any window that uses the QR Code components, you need to SHIFT + RIGHT\_CLICK on your window in the property viewer. You then need to click on “Copy XML to Clipboard”. Paste each windows XML into a XML file, and save for later.

Now, On all of the resulting xml files, you need to search for “com.ksbindustrial.qrcode.components.QRCode” and replace it with “com.koerr.client.components.qrcode.QRCode”

We changed the package name recently, that is why this change is required.

After you have done that, you can upgrade ignition plus the module. Once upgraded, enter the designer, copy the edited XML files to clipboard, then Shift + RIGHT\_CLICK the window, and click “Set XML From Clipboard”. Save and try opening the window now, it should work.  
[QRCode Component.modl](https://us1.discourse-cdn.com/inductiveautomation/original/2X/d/dd4e9078e3d603e01a7676cfafc955097b2cfd3a.modl) (126 KB)

---

<div class="post-metadata">

**Author:** ![arronlee](https://avatars.discourse-cdn.com/v4/letter/a/c57346/32.png) [@arronlee](https://forum.inductiveautomation.com/u/arronlee)\
**Post date:** [May 30, 2014, 10:01am UTC](https://forum.inductiveautomation.com/t/qr-code-component-and-generator/3202/13 "2014-05-30T10:01:25Z")

</div>

[color=#333333]Hi,  
As for me, I am testing another[/color] [[color=#333333]java qr code generation[/color]](http://www.keepautomation.com/products/java_barcode/barcodes/qrcode.html) [color=#333333]projects these days. Do you have any ideas about it? Or any good suggestion? Thanks in advance.

Best regards,  
Arron[/color]
