1 Reply Latest reply on May 4, 2018 9:23 AM by Robin West

    Communicate with printer over network

    Mike Roosa

      I'm looking for the a way to accomplish the following:

      1. Print to any one of 50+ network printers at our site

      2. Get printer status if a printer is offline or has an error

       

      I have the ZPL code for the labels I need. I just need to know what's the best method for printing from a central program and getting printer statuses if possible. All of the printers are network printers on a windows server.

       

      We will most likely use C# or Python to build the program to communicate with the printer.

       

      What should I be reading up on? Should I be using sockets or the HTTP Post or am I looking at the wrong things? Can you point me to the best documentation for learning how to do this?

       

      Thanks.

        • Re: Communicate with printer over network
          Robin West

          Hi Mike,

          There are several different methods for doing this, but if you have a mixed set of printers (older and newer) and you plan to stay within the local network, then TCP Sockets are your best option.  We have .NET and Java based SDKs for server/pc to support this.  They are not necessary, but helpful.

          The other main option is - If the printers are mostly newer models, you can use Websockets (HTTPS).  This will allow your app to go cloud based if you wanted and still have direct access to the printers.   The SDK supports this in Java.

          You could use things like HTTP Post or Browser Print for this, but I would not recommend it for your use case.  Post won't allow you to get status.  Browser Print could work, but it's cumbersome in my opinion for your use case.  Sockets would be faster and more robust.

          I would definitely recommend looking at our Best Practices document.