# Print 2D barcode with reporting engine

**URL:** <https://forum.inductiveautomation.com/t/print-2d-barcode-with-reporting-engine/31370>\
**Category:** Ignition\
**Created:** [January 17, 2020, 4:32pm UTC](https://forum.inductiveautomation.com/t/print-2d-barcode-with-reporting-engine/31370 "2020-01-17T16:32:24Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![vrautomation](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/vrautomation/32/11155_2.png) [@vrautomation](https://forum.inductiveautomation.com/u/vrautomation)\
**Post date:** [January 17, 2020, 4:32pm UTC](https://forum.inductiveautomation.com/t/print-2d-barcode-with-reporting-engine/31370/1 "2020-01-17T16:32:24Z")

</div>

Everything is in the question. Is it possible to generate a report containing a 2D barcode?

Thanks

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [January 17, 2020, 4:52pm UTC](https://forum.inductiveautomation.com/t/print-2d-barcode-with-reporting-engine/31370/2 "2020-01-17T16:52:25Z")

</div>

Yes, reporting has a barcode component with support for a variety of 1 and 2d codes, including datamatrix, QR, aztec, and pdf417:  
[https://docs.inductiveautomation.com/display/DOC80/Report+-+Barcode](https://docs.inductiveautomation.com/display/DOC80/Report+-+Barcode)

---

<div class="post-metadata">

**Author:** ![vrautomation](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/vrautomation/32/11155_2.png) [@vrautomation](https://forum.inductiveautomation.com/u/vrautomation)\
**Post date:** [January 17, 2020, 5:47pm UTC](https://forum.inductiveautomation.com/t/print-2d-barcode-with-reporting-engine/31370/3 "2020-01-17T17:47:21Z")

</div>

Very good. Thank you!

---

<div class="post-metadata">

**Author:** ![vrautomation](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/vrautomation/32/11155_2.png) [@vrautomation](https://forum.inductiveautomation.com/u/vrautomation)\
**Post date:** [January 21, 2020, 2:29pm UTC](https://forum.inductiveautomation.com/t/print-2d-barcode-with-reporting-engine/31370/4 "2020-01-21T14:29:38Z")

</div>

Does someone print SSCC-18? That seems a standard barcode format for pallet shipping…

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [January 21, 2020, 4:20pm UTC](https://forum.inductiveautomation.com/t/print-2d-barcode-with-reporting-engine/31370/5 "2020-01-21T16:20:59Z")

</div>

No, the backing library we’re using for barcode generation (Google’s zxing) doesn’t support that format. If you’re comfortable with Java, you could make a new report component (following the SDK template: [https://github.com/inductiveautomation/ignition-sdk-examples/tree/master/report-component](https://github.com/inductiveautomation/ignition-sdk-examples/tree/master/report-component)) and an open source barcode library, such as [`barbecue`](http://barbecue.sourceforge.net/apidocs/net/sourceforge/barbecue/BarcodeFactory.html#createSSCC18(java.lang.String)).

---

<div class="post-metadata">

**Author:** ![vrautomation](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/vrautomation/32/11155_2.png) [@vrautomation](https://forum.inductiveautomation.com/u/vrautomation)\
**Post date:** [January 22, 2020, 2:13pm UTC](https://forum.inductiveautomation.com/t/print-2d-barcode-with-reporting-engine/31370/6 "2020-01-22T14:13:52Z")

</div>

From what I can see on google, it seems that SSCC-18 is not really a barcode format. It defined what are the informations included in the barcode.

The format is GS1-128 with is very close to CODE 128.

Nobody did that before? The application is to print a pallet barcode. I suppose we are not the first one that need to do that…

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [January 22, 2020, 4:40pm UTC](https://forum.inductiveautomation.com/t/print-2d-barcode-with-reporting-engine/31370/7 "2020-01-22T16:40:34Z")

</div>

No, to my knowledge, you’re the first person to ask. You can certainly post a request on `ideas.inductiveautomation.com`, or ask around if someone here on the forums (perhaps for a contract) would be willing to do the requisite development. It really doesn’t look like it would be _too_ challenging to mash up the library I linked with our reporting engine.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [January 22, 2020, 6:09pm UTC](https://forum.inductiveautomation.com/t/print-2d-barcode-with-reporting-engine/31370/8 "2020-01-22T18:09:22Z")

</div>

Actually, looking into it more, you might just need to supply the right string (including raw ASCII characters) to a Code-128 report object and it’ll output what’s _technically_ a GS1-128/SSCC-18 barcode - the symbology is the same, the only difference is the control characters.

---

<div class="post-metadata">

**Author:** ![ryanjmclaughlin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ryanjmclaughlin/32/4318_2.png) [@ryanjmclaughlin](https://forum.inductiveautomation.com/u/ryanjmclaughlin)\
**Post date:** [January 22, 2020, 6:32pm UTC](https://forum.inductiveautomation.com/t/print-2d-barcode-with-reporting-engine/31370/9 "2020-01-22T18:32:37Z")

</div>

Yes, we do this all the time in Ignition at our company. Just write your report to encode the data properly into a Code128 barcode. SSCC-18 is just a standard encoding built on top of GS1-128 which is built on top of Code128…

---

<div class="post-metadata">

**Author:** ![vrautomation](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/vrautomation/32/11155_2.png) [@vrautomation](https://forum.inductiveautomation.com/u/vrautomation)\
**Post date:** [January 22, 2020, 6:49pm UTC](https://forum.inductiveautomation.com/t/print-2d-barcode-with-reporting-engine/31370/10 "2020-01-22T18:49:34Z")

</div>

OK! Thank you very much to both of you. This is exactly my understanding but I wanted to be sure.
