How do Web Label Printers connect with code

Hello, Where can I find the web code for the label printers in the SDK and can I use the code to connect to all the 1700 printers we have at the company? Thank you Rad

Anonymous (not verified)
Hi Rad, For large printer

Hi Rad,

For large printer installations like yours, we recommend connecting the printers to the network and managing print from your web server.  There are two different methods to do this.  If you are now or plan to in the future run the webserver from a cloud or hybrid cloud instance, you will want to use the WebServices library in the SDK.  This will allow you to connect the printers using websockets.  If the web app is internal only on your intranet, you can use the standard Java or .NET SDKs to make TCP connections to the printers.  Let us know if you want further direction,

- Robin

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Radwan Shaykho
Hi Robin Thank you for your

Hi Robin Thank you for your great advise!!! Yes we are on our intranet, but when I try to use the SDK .Net am not able to connect to all printers using TCP/IP.  Not sure why yet???? It could be many issues??? Any Ideas? Using the WebServices library from a server sounds very good as I need to collect all the status of the printers including number of prints. Do you have a video on webServices library I can use to learn more on it and deploy it? Thank you again Robin for your supper great support :) Rad

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Anonymous (not verified)
Hi Rad, Likely if you are not

Hi Rad,

Likely if you are not finding all the printers, it could be your network settings.  I have found using the Multicast() search to get around some the common network issues.  The FindPrinters() function tends to rely on LocalBroadcast() more than other searches and some networks block that. You may find it's timing out on you especially if the printers you are searching for are physically far away from your server.  You might try SubnetSearch() or DirectedBroadcast()  on your subnets to pull in everything.  You should be able to run these off of multiple threads.

For the webservices functionality, we unfortunately don't have a video.  It's a more complicated setup.  I recommend starting here.​  Currently the only SDK we have to support this functionality is in Java and needs to run on a Tomcat server.  The API documentation for this SDK is here.  The SDK is included with the Link-OS SDK as well as a very basic sample code project.  It is not a true webservice, but can be built into one.

Let me know if this helps,

- Robin

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Radwan Shaykho
Hi Robin,Thank you again for

Hi Robin,

Thank you again for all your help and support!!!

Do you think Visual Studio has a problem running the below code as I keep

getting the below error?

c:\*Jenkins\workspace\Sdk_C_Desktop*

\SdkApi_Core\src\SdkApi_Core\Zebra\Sdk\Printer\Internal\ZebraPrinterZpl.cs

<https://developer.zebra.com/message/96335#96335>

Does the below code work in Visual Studio Console or web Web-Application

like ASP.Net? Can you validate it please?

All I need from the automation that I need to build are two functions:

1. Get Status

2. Get All Messages.

Thank you Robin

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Radwan Shaykho
Hi Robin,I got it tuning

Hi Robin,

I got it tuning finally.

Thank you for all your help and

support!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Log in to post comments