# Printing barcode to Zebra printer with Zebra API

**URL:** <https://forum.inductiveautomation.com/t/printing-barcode-to-zebra-printer-with-zebra-api/72549>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [April 17, 2023, 10:26pm UTC](https://forum.inductiveautomation.com/t/printing-barcode-to-zebra-printer-with-zebra-api/72549 "2023-04-17T22:26:10Z")\
**Posts on this page:** 1\
**Showing post:** 3

<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:** [April 17, 2023, 10:39pm UTC](https://forum.inductiveautomation.com/t/printing-barcode-to-zebra-printer-with-zebra-api/72549/3 "2023-04-17T22:39:31Z")

</div>

You might not need the SDK at all, if I remember correctly it doesn't actually give you a whole lot.

> [@Printing barcode to Zebra printer](https://forum.inductiveautomation.com/t/printing-barcode-to-zebra-printer/8957/26):
>
> No driver required. def printLabel(partNum, serialNum, printerIP, port): from java.net import Socket from java.io import DataOutputStream strMessage100 = '^XA' strMessage110 = '^BY3,3,60^FT065,120,^BCN,N,N,N,N^FDP%s^FS' % partNum strMessage111 = '^FT170,040^A0N,40,45^FD%s^FS' % partNum strMessage112 = '^FT065,260,^BCN,N,N,N,N^FDS%s^FS' % serialNum strMessage113 = '^FT170,170^A0N,40,45^FD%s^FS' % serialNum strMessage199 = '^PQ1,0,1,Y^XZ' strOut = strMessage100+strMessage110+strMessa…

---

_[View the full topic](https://forum.inductiveautomation.com/t/printing-barcode-to-zebra-printer-with-zebra-api/72549)._
