Nicelabel LMS Print Android

Label printing integration (NiceWatch middleware and ActiveX programming interface)

Moderators: Georges, milos, NiceLabel Support Team

Post Reply
viraj_96
Newcomer
Posts: 2
Joined: Sun Jun 10, 2018 12:06 am

Nicelabel LMS Print Android

Post by viraj_96 » Sun Jun 10, 2018 12:23 am

Hi I was looking for mobile printing solutions for nicelabel 2017 and came across the android app for nicelabel lms print.

However i cannot figure out how it is set up and if it is possible to connect some thing other than their demo site.

The about section mentions something about the Restful API. I would love to know what is up with the demo and is it something that we can use.

User avatar
dado
NiceLabel Development
NiceLabel Development
Posts: 661
Joined: Tue Sep 12, 2006 12:50 pm
Location: Kranj, Slovenia
Contact:

Re: Nicelabel LMS Print Android

Post by dado » Sun Jun 10, 2018 1:36 pm

Hi

What the android application does is asks the user for some data input. Actually for the values of the elements that are on the label which will be printed. Then these data is sent to the NiceLabel Automation. Which is an application you can download and install on any Windows computer.

In Automation you must setup a tpc-ip, http or webservice trigger which will be used to communicate with the android application. The communication will transfer the data of the variables to the Automation which can generate the print preview and print stream for any printer (driver must be installed on the system where Automation is installed) and return the preview and the stream through tcp-ip or http packet back to the android application.

Since Automation supports communication with Tcp-ip, Http and WebServices you are free to use any of the available protocols. I believe we used a WebService communication here in our sample.

Regards, Damjan

viraj_96
Newcomer
Posts: 2
Joined: Sun Jun 10, 2018 12:06 am

Re: Nicelabel LMS Print Android

Post by viraj_96 » Sun Jun 10, 2018 7:01 pm

Thanks for the rely,

I have been trying to get this working all day now but cant seem to make it work.

Is there a sample that is available to help see what kind of triggers and actions are setup to get this working.

It would be of great help if I could see a working example in automation.

User avatar
Saso
NiceLabel
NiceLabel
Posts: 2892
Joined: Mon Sep 04, 2006 8:09 am
Contact:

Re: Nicelabel LMS Print Android

Post by Saso » Mon Jun 11, 2018 3:03 pm

The Automation configuration behind the Android demo app uses communication over HTTP triggers in Automation. There are several triggers defined, each for specific purpose, e.g. "get label preview", "show available labels", "print label", "get print job", etc.

All triggers are running on the same port, so you just have to open one port in the firewall. Triggers have different "path" defined. So you would call one like this http://localhost:12345/preview and the other one http://localhost:12345/print

A sample to show how to return the label preview in a HTTP response is installed with NiceLabel Automation.

See this folder on your computer:

Code: Select all

c:\Users\Public\Documents\NiceLabel 2017\Automation\Samples\Label Preview as HTTP Response
Also see the private message.
Saso Fleiser
Senior Technical Product Specialist

Post Reply