# Print Label w/o User Print Dialog

**URL:** <https://forum.inductiveautomation.com/t/print-label-w-o-user-print-dialog/29605>\
**Category:** Ignition\
**Tags:** ignition80, vision\
**Created:** [November 1, 2019, 7:46pm UTC](https://forum.inductiveautomation.com/t/print-label-w-o-user-print-dialog/29605 "2019-11-01T19:46:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![davis.tolbert](https://avatars.discourse-cdn.com/v4/letter/d/57b2e6/32.png) [@davis.tolbert](https://forum.inductiveautomation.com/u/davis.tolbert)\
**Post date:** [November 1, 2019, 7:46pm UTC](https://forum.inductiveautomation.com/t/print-label-w-o-user-print-dialog/29605/1 "2019-11-01T19:46:27Z")

</div>

Hi all. First time poster here. I’ve been working on a project trying to print a barcoding label by putting the label layout in a container and then printing that container using ‘system.print.createPrintJob’ as is in the ignition documentation. This works great when I allow the print dialog; the default settings in there make the label come out perfectly. Once I try to remove the print dialog I just get blank labels. I’ve played with the margins and the page height and width and can’t get even a single dot to show up on the label. Thanks in advance!

P.S. the printer is an Intermec PM43 if that makes any difference.

---

<div class="post-metadata">

**Author:** ![Paullys50](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paullys50/32/3324_2.png) [@Paullys50](https://forum.inductiveautomation.com/u/Paullys50)\
**Post date:** [November 2, 2019, 9:37pm UTC](https://forum.inductiveautomation.com/t/print-label-w-o-user-print-dialog/29605/2 "2019-11-02T21:37:27Z")

</div>

Looks like you can use ZPL with that printer, my suggestion would be to generate a ZPL string instead. Head over to [Labelary Online ZPL Viewer](http://labelary.com/viewer.html) and you can see an example.

See this post as using system.net.httpPost to send it to the printer.

> [@Send ZPL command to Zebra 170PAX4 via TCP/IP Socket](http://forum.inductiveautomation.com/t/send-zpl-command-to-zebra-170pax4-via-tcp-ip-socket/6003/14):
>
> Thanks for the HTTP tip. I did not know this was possible this easily. Here is an Ignition snippet for reference that prints ZPL to a printer system.net.httpPost('http://192.168.1.10/pstprnt', postData="^XA^WD^XZ")

The printer may or may not accept a print with this command, Zerbra branded printers work great, but I've have printers that emulate ZPL not work with this script, but I was able to use the TCP/UDP driver to connect and send the ZPL through that instead.

---

<div class="post-metadata">

**Author:** ![davis.tolbert](https://avatars.discourse-cdn.com/v4/letter/d/57b2e6/32.png) [@davis.tolbert](https://forum.inductiveautomation.com/u/davis.tolbert)\
**Post date:** [November 4, 2019, 7:24pm UTC](https://forum.inductiveautomation.com/t/print-label-w-o-user-print-dialog/29605/3 "2019-11-04T19:24:55Z")

</div>

Thanks for the reply! I’d really like to stick with the built in IG functions if possible. Neither I, nor anybody I work with is very familiar with printing protocols like ZPL, but I’ll keep that in mind if I can’t get the stock functions to work.
