QZ Print Integration

152 views
Skip to first unread message

rakesh...@gmail.com

unread,
Jan 2, 2017, 5:59:59 AM1/2/17
to qz-print
Hi All,

I am new to the qz print. I want to print the invoice bill in client side. How can i integrate the qz print. I am using java spring mvc 4 and hibernate as the database.

Tres Finocchiaro

unread,
Jan 2, 2017, 8:56:41 AM1/2/17
to rakesh...@gmail.com, qz-print
QZ Tray is a client-side API.  This means your invoice data needs to make it to JavaScript.

Java/Spring will be needed to suppress the warnings and to provide the invoice data.

There are several decisions you'll need to make, such as which printers you plan to support and wether or not you require support for integration.

In regards to a quickstart with Spring, you are unlikely to find one unless someone else on the mailing list can share their trials.
On Mon, Jan 2, 2017 at 5:59 AM, <rakesh...@gmail.com> wrote:
Hi All,

    I am new to the qz print. I want to print the invoice bill in client side. How can i integrate the qz print. I am using java spring mvc 4 and hibernate as the database.

--
You received this message because you are subscribed to the Google Groups "qz-print" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qz-print+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

rakesh...@gmail.com

unread,
Jan 4, 2017, 8:18:42 AM1/4/17
to qz-print, rakesh...@gmail.com
Is there qz-print.jar and qz-print_jnlp.jnlp files are different for 2.0 version or else same as 1.9 version.

Tres Finocchiaro

unread,
Jan 4, 2017, 10:40:31 AM1/4/17
to rakesh kumar, qz-print
Entirely different.  There's no Java applet anymore, JNLP isn't needed, qz-print.jar is renamed qz-tray.jar and exists on the workstation in Program Files, not on the server.  No <applet> tags, etc.
On Wed, Jan 4, 2017 at 8:18 AM, <rakesh...@gmail.com> wrote:
Is there qz-print.jar and qz-print_jnlp.jnlp files are different for 2.0 version or else same as 1.9 version.

rakesh...@gmail.com

unread,
Jan 5, 2017, 1:36:43 AM1/5/17
to qz-print, rakesh...@gmail.com
Okay Tres...
I am using 2.0.1 version and i have added the qz-tray.jar, and the required javascript files. If my application is running through eclipse tomcat server the url as localhost:8080/appname. But the issues are

1. If I am running my application in client machine through the server ip address for example,

192.1.2.2:8080/appname , the connection could not Active because you have mentioned the host as localhost in qz-tray.js line number 58. Suppose I have change the localhost as server ip address then the connection as been established to Active.

2. After that if the connection can active the type error:_qztray hash is not function error i'm getting.

That also i have searched in google groups you said sha256.min,js as to be included. But already i have include but i'm getting the same error. For checking purpose i have check with the alert message the alert is not displayed. So i conformed that the sha256.min.js file is not working.

Can you resolve my problems..

Tres Finocchiaro

unread,
Jan 5, 2017, 1:42:13 AM1/5/17
to rakesh kumar, qz-print
QZ Tray is generally installed on each PC.  Is there  reason why you have not done this?

If you cannot, print server mode can do what you are describing using HTTP, the steps are outlined here:


HTTPS is outlined as well, but is more work to setup.



rakesh...@gmail.com

unread,
Jan 5, 2017, 2:02:41 AM1/5/17
to qz-print, rakesh...@gmail.com
Okay Tres

I have one doubt if i'm going for the software in online how can the clients are printing the bill, they can also must install the qz tray in their system or some other solution is there for that problem.

rakesh...@gmail.com

unread,
Jan 5, 2017, 2:24:28 AM1/5/17
to qz-print, rakesh...@gmail.com
We have maintained the server all those things only the domain access can be given to the client. If they are using the domian address in their browser to access the data which is in the server. Then can i do ...

rakesh...@gmail.com

unread,
Jan 5, 2017, 2:25:07 AM1/5/17
to qz-print, rakesh...@gmail.com
On Thursday, January 5, 2017 at 12:54:28 PM UTC+5:30, rakesh...@gmail.com wrote:
> We have maintained the server all those things only the domain access can be given to the client. If they are using the domian address in their browser to access the data which is in the server. Then what can i do ...

Tres Finocchiaro

unread,
Jan 5, 2017, 7:39:22 AM1/5/17
to rakesh kumar, qz-print
Yes, just provide them the download.

On Jan 5, 2017 2:02 AM, <rakesh...@gmail.com> wrote:
Okay Tres

   I have one doubt if i'm going for the software in online how can the clients are printing the bill, they can also must install the qz tray in their system or some other solution is there for that problem.

Reply all
Reply to author
Forward
0 new messages