Print label on workflow

emanuelesignori
Kilo Contributor

Hi all,

is there a way to print a label (for example over a Zebra printer) from a workflow on Servicenow? We have also a MID Server, we can use it for print? How could we do?

Thanks in advantage!

Best regards,

Emanuele Signorin

16 REPLIES 16

Hey Mikael, sorry about that. I never send you those files. 

I attached the XML files needed to create the dependency. once created, you can attach this dependency to the widget, then call the function from the client side of the widget. 

I have not tried using the Zebra browser print from a UI action. I can give it a shot and let you know if I can get it working. 

Hi Igomez,

Ok, no problem 🙂

But, if possible, please send me an email with attached xml files. I didn't find where you attached those here???

I'm esspecially curious about how you imported the Browser Print js (BrowserPrint-1.0.4.min.js) in ServiceNow? As a UI script or a standard Script include?

Also, the syntax or function call to do the print "send(dataToSend, finishedCallbackopt, errorCallbackopt)" using the Browser Print js library.

Kind Regards,

/Mikael

AndyLock
Mega Guru

Hi Igomez,

My use case is a little different: I would like to print the label from a button on the Asset form, and would really appreciate some help.

I was hoping to use http POST with the ZPL printer as an endpoint, but I can't make it work.

 

thx,

Andy

 

Zebra's page on http post printing: https://developer.zebra.com/community/home/blog/2015/03/31/printing-from-websites-part-2

 

 

Hi Andy,

I didn't get any answer from lgomez so i've started to develop a solution myself.

I will go for the Zebra Browser Print using a Zebra GX420d either connected through USB or Network.

I have a solution today with a button on the Asset form. It's working but i have some problems with the quality of the printed barcode itself. So for that reason i will also try Zebra Browser Print API.

I got the JsBarcode to work but still, i have to get it to the Zebra printer...

I'll hope to be finished either day and make a post with my findings.

/Mikael

Mikael at Advan
Tera Contributor

Hi Emanuele,

I have a pretty easy solution for this if your'e interesting?

I will post an article for this soon but haven't got the time yet

Kind regards,

/Mikael