# Perspective Printing on network printer

**URL:** <https://forum.inductiveautomation.com/t/perspective-printing-on-network-printer/50013>\
**Category:** Ignition\
**Created:** [August 17, 2021, 4:29pm UTC](https://forum.inductiveautomation.com/t/perspective-printing-on-network-printer/50013 "2021-08-17T16:29:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![RohanPalshikar](https://avatars.discourse-cdn.com/v4/letter/r/7ba0ec/32.png) [@RohanPalshikar](https://forum.inductiveautomation.com/u/RohanPalshikar)\
**Post date:** [August 17, 2021, 4:29pm UTC](https://forum.inductiveautomation.com/t/perspective-printing-on-network-printer/50013/1 "2021-08-17T16:29:23Z")

</div>

Hi, i have a zebra barcode printer on network and we intend to print barcodes from our perspective application. I tried creating a gateway event script message handler and use this, but not printing. Can anyone help?

import socket  
HOST = ‘10.200.132.41’  
PORT = 9100  
s = socket.socket(socket.AF\_INET, socket.SOCK\_STREAM)  
s.connect((HOST, PORT))  
s.sendall(’^XA’)  
s.sendall(’^FO50,50^ADN,36,20^FDHello world’)  
s.sendall(’^FS’)  
s.sendall(’^XZ’)  
s.close()
