New to qz printing

865 views
Skip to first unread message

lena sinkaram

unread,
Oct 4, 2015, 1:29:42 PM10/4/15
to qz-print
Hi All,

Required your help on below.

I am new to qzebra printing. I am using jsf & java, I need to integrate bar code printer with my jsf/java web application to print ZPL code.

Please help me to print same, based on client end printers.


Thanks in advance.

Kyle La Barge

unread,
Oct 4, 2015, 8:57:57 PM10/4/15
to lena sinkaram, qz-print, support
Hello,

We will be happy to help you integrate QZ Print into your environment.  I would like to mention that we have a desktop version (QZ Tray), that uses WebSockets to talk to the browser, and therefore, will work with the latest version of Chrome.  QZ Print is the Java applet that uses NPAPI, which Chrome has blocked.

Have you successfully installed QZ Print?  You can navigate to our demo page at https://demo.qz.io/ to test that QZ Print is successfully installed and properly working.  This demo page is the sample.html that ships with our software in the demo folder.

This guide is a great starting point to view code examples to help achieve what you are looking for.  

If you need any more help or information, whether it's getting the software to work or implementing the code, please do not hesitate to contact us.

Regards,


Kyle LaBarge
Technical Support
QZ Industries, LLC
ky...@qz.io


--
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+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

lena sinkaram

unread,
Oct 6, 2015, 4:42:57 PM10/6/15
to Kyle La Barge, qz-print, support
Hi Thanks for your reply. I need more clarification on same.

My project is Java/JSF web application installed in Linux server, my clients need to print barcode by opening web application in their desktop and print to the printer connected in their network or their desktop.

Please advice how I should use the code which you have shared me as demo project to integrate my code as same :)
--
lena sinkaram

Kyle La Barge

unread,
Oct 6, 2015, 11:05:48 PM10/6/15
to lena sinkaram, qz-print, support
Hello,

As mentioned, this guide: https://qz.io/wiki/getting-started is a good starting point.  When loaded properly, the QZ Print applet will interact with the JavaScript running on the webpage.  Many of our clients will also use the sample.html page that ships with our software as a guide.  This file provides a good working example of our software interacting with a webpage.  You can open this file with a text editor of your choice to view the code that you may want to cherry pick to suit your needs.

You will find that some of the logic in the sample.html page is not needed, as some of it is used for our QZ Tray software.  Take a look at this guide: https://qz.io/wiki/qz-print-vs-qz-tray to see code that is not needed for QZ Print.

I hope this is enough information to get you started.  If you run into any problems or snags, we will be more than happy to look at your code to help integrate QZ Print into your environment.

Regards,


Kyle LaBarge
Technical Support
QZ Industries, LLC
ky...@qz.io


kavi.ka...@gmail.com

unread,
Mar 12, 2019, 9:12:54 PM3/12/19
to qz-print

Kyle La Barge

unread,
Mar 12, 2019, 9:24:04 PM3/12/19
to kavi.ka...@gmail.com, qz-print
Hi Kavi,
That wiki was written for clients migrating from the applet version to QZ Tray 1.9. QZ Tray 1.9 was the first desktop installer version, and included a wrapper around the old API. These versions are no longer supported.

If you're looking for a minimalist example, take a look at this guide: https://qz.io/wiki/2.0-getting-started#the-code


Thanks,
Kyle LaBarge


On Tue, Mar 12, 2019 at 9:12 PM <kavi.ka...@gmail.com> wrote:

Kyle La Barge

unread,
Mar 12, 2019, 10:06:48 PM3/12/19
to kavi karnapura, qz-print
Hi Kavi,

Reminder to keep the mailing list on copy of all emails :)

I've responded to this question on the other thread.

Thanks,
Kyle LaBarge


On Tue, Mar 12, 2019 at 9:49 PM kavi karnapura <kavi.ka...@gmail.com> wrote:
Hi, Kyle
Thanks for your reply.
I've been trying to make qz work on my desktop for the last 2 days already and unfortunatelly unsuccessfully :(
Where should I paste the code from https://qz.io/wiki/2.0-getting-started#the-code ?
Should I paste it in the <head> or in the <body> ?
I'd like to trigger the printing automatically when page loads with <body onload="print()">
I am trying all variations like pasting the code in the <head> and pasting the code in the <body> but neither works :(

This is my html which is not working:

<html>
<head>
    <meta content="text/html;charset=utf-8" http-equiv="Content-Type">
    <title>POS print by Kavi ...</title>
<script type="text/javascript" src="js/dependencies/rsvp-3.1.0.min.js"></script>
<script type="text/javascript" src="js/dependencies/sha-256.min.js"></script>
<script type="text/javascript" src="js/qz-tray.js"></script>
</head>

<body onload="print()">

<script>
function print() {
   var config = qz.configs.create("POS-58");
   var data = [
      'Data\n',
      'Should be simple data\n',
      'To be printed\n'
   ];
   qz.print(config, data).catch(function(e) {
       console.error(e);
   });
}
</script>    
<h1>Printing to POS !!!</h1>
</body>
</html>

Can you please help?

Thank you.

'kavi'...

Reply all
Reply to author
Forward
0 new messages