Printing from Javascript

// Expert user has replied.
C Chris Harp 1 month ago
80 1 0

I'm looking for recommendations and best practices for enabling printing from a web applications. Specifically, we're looking at adding print capabilities to Microsoft Dynamics 365 Field Service, both from a desktop browser and a mobile device (via the Field Service app which can run Javascript). After digging around the various Zebra SDKs and such, I'm thinking the best option is Browser Print. Are there any other options that would be a better fit? 
Also, are there any recommended virtual printers to use for development? I found one on Github (Virtual ZPL Printer) that seems pretty nice, though it seems to be flakey when paired with Browser Printer. What do other developers do for testing while building customizations, short of having a physical device and printing lots of wasted labels?

Any help would be greatly appreciated. Thanks!

Printers: Zebra ZQ610 Plus Mobile Printer, Zebra Zd411 Desktop Label Printers
Devices: Zebra TC58A1

Please Register or Login to post a reply

1 Replies

S Steven Si

An alternative to the Browser Print is the SendFileToPrinter API, which is a cloud based REST API for label printing. It's probably the simplest way for integrating label printing feature in a web application. For development, a real Zebra printer is required. Without a real printer, it's almost impossible for label printing feature development. To save labels during development, we can set the printer in journal mode (continuous paper mode) and cover the label detection sensor with a dark tap. So that the printer can operate normally without paper.

 

CONTACT
Can’t find what you’re looking for?