WMO Printer API Interface

Usage Info

Click to toggle usage info...

The following text explains installation and usage of the new WMO Printer API.

1. Installation

  • We need Zebra's Browser Print application that can be downloaded from their website.
    This tool is available on a request basis - a brief form must be completed to obtain access
  • Alternatively, the Browser Print application can be downloaded from the following links:
  • Install the application on your computer
  • Start the application and accept the self-signed certificate.
    The application asks to accept a self signed certificate to be able to communicate from the browser to the application via HTTPS. Its opens a web browser at this address: https://localhost:9101/ssl_support
  • Zebra printers can now be added as available printers (connected over LAN printers as well as locally over USB)
    The application opens a local port (9101) over which the website can connect and communicate with the printers.

2. Usage

The WMO Printer API is a JavaScript library that allows to print data to Zebra printers using the Browser Print application.

  • Download the following script files:
  • Include the script files in your HTML document:
      <head>
        ...
        <script type="text/javascript" src="browserPrint-3.1.250.js"></script>
        <script type="text/javascript" src="wmo-printer-1.0.0.min.js"></script>
      </head>
  • Use the interface below to test all available API functions, and see how they interact with the Browser Print application and the connected Zebra printers.
  • For more information, check the source code of this page.

3. Reference

Click here for the ZPL2 programming language guide from Zebra Technologies: ZPL II Programming Guide

Function

Parameters

Response