Hello,
We are using QZ-Print software for labels, barcodes and documents printing with GT820 Zebra printer. With this we are able to print documents successfully but when tried to print the ZPL and EPL format labels getting exceptions in the applet class as below
java.lang.NullPointerException
at qz. ImageWrapper.generateBlackPixels(ImageWrapper.java:219)
at qz. ImageWrapper.init(ImageWrapper.java:387)
at qz. ImageWrapper.<init>(ImageWrapper.java:57)
at qz. PrintApplet.startJavaScriptListener(PrintApplet.java:204)
at qz. PrintApplet.mav$startJavaScriptListener(PrintApplet.java:51)
at qz. PrintApplet$1.run(PrintApplet.java:134)
at java.security.AccessController.doPrivileged(Native Method)
at qz.
PrintApplet.run(PrintApplet.java:129)
at java.lang.Thread.run(Unknown Source)
Successfully called JavaScript function
setTimeout(doneAppending(), 0)
The above exception is coming at the below code in applet class
bi = ImageIO.read(new URL(file));
Please help me in resolving this issue
If there is any pricing for support please send us the details.
Thanks,
Eshwari
Hello Tres,
We want to print the labels that are received from carriers like fedex and ups. Tried by removing qz.appendImage() and qzDoneAppending() but no luck. I am a bit confused here why to append the image and or not. Can you please explain this. Using below code in javascript to print the label
qz.appendImage(filePath, 'EPL', 150, 300); // Here filepath is the exact path of the lable sent by carrier
window['doneAppending'] = function() {
qz.append('\nP1,1\n');
qz.print();
window['doneAppending'] = null;
};
Will look at the pricing details also and get back to you. Can we get any contact number
Thanks,
Eshwari
Hi Tres,
Thanks for the reply. We are giving absolute path and not using any images. Directly we want to print the labels which are saved in a file and these labels come from carriers. Please send us the contact number.
Thanks for the reply. We are giving absolute path and not using any images. Directly we want to print the labels which are saved in a file and these labels come from carriers. Please send us the contact number.
qz.appendFile(filePath);
function qzDoneAppending() {
qz.print();
}
Hi Tres,
Changing appendImage() to appendFile() worked.
We have purchased license and when we login with the key, found 2 different softwares - 1 with the name QZ Tray and the other as QZ Print. Could you please explain the difference between these 2.
Earlier we have downloaded the free version. Is this different from the licensed code.
> Earlier we have downloaded the free version. Is this different from the licensed code.
Hi Tres,
Thanks from the details. We have couple of questions more as below
Can this QZ Print software be used for Reading weights from Weighing scale.
Is there a version with applet that work with removal of NPAPI from chrome?
Can this QZ Print software be used for Reading weights from Weighing scale.
Is there a version with applet that work with removal of NPAPI from chrome?
Hi Tres,
Can we get code for USB supported weighing scales in future. If so how much time do we need to wait for this.
Already we are using QZ Print for printing. To make the applet working with removal of NPAPI from chrome what changes do we need to do in the existing code.
> Can we get code for USB supported weighing scales in future. If so how much time do we need to wait for this.
Java doesn't offer HID support, which is required for true USB support, so the likeliness of this is under investigation.
If you are using a MT scale with a serial port, we have constructed special USB cables to make them plug in, but still use serial support. Please inquire if interested.
> Already we are using QZ Print for printing. To make the applet working with removal of NPAPI from chrome what changes do we need to do in the existing code.
You'll need to add a two new functions, signRequest() and getCertificate() and include qz-websockets.js. This can be observed in sample.html, distributed with our qztray software.
In regards to running both, we have a fallback process so that you can continue using the applet, but FYI, there is currently a bug which prevents non-qz-tray users to fallback on the applet when using HTTPS (should be fixed this week).
Hi Tres,
Downloaded the QZ-Print-1.9 version with the key you provided after purchasing the license. And now when tried to open the sample.html file present in the demo folder getting the error message as shown in the below screenshot. How to resolve this error
Thanks,
Eshwari
From: Tres Finocchiaro [mailto:tres.fin...@gmail.com]
Sent: Wednesday, June 10, 2015 8:12 PM
To: Venkateswaramma Malluru
Cc: qz-p...@googlegroups.com
Tres,
We are using java 6 and can't upgrade to higher version. Please suggest us what to do further.
Thanks ,
Eshwari
We tried to open the sample.HTML of QZ-print only and got the below error.
Thanks,
Eshwari
Hi Tres,
Downloaded the applet version from the link below and got the below error when tried to open sample.html
Hi Tres,
Have 1 question on the location of the file that has to be printed. Do we need to have the file available in the client machine locally or can we also use the file that is located in the server for printing. Could you please help us in getting printed the file that is saved in server with the printer set up in the client machine.
> Do we need to have the file available in the client machine locally or can we also use the file that is located in the server for printing.
> Could you please help us in getting printed the file that is saved in server with the printer set up in the client machine.
qz.appendFile("http://myserver/myfile");
function qzDoneAppending() {
qz.print();
}
qz.appendFile("http://myserver/raw.php?someparam1=somevalue&someparam2=somevalue");
function qzDoneAppending() {
qz.print();
}
Hi Tres,
We are saving the files in UNIX file system through our web application and the path to the file from root path will be as below
/user/tomcat/labels/file
Hi Tres,
Tried as suggested you by giving qz.appendFile("http://sharp.appsahyd.com/home/aasc/aasc/labels/1Z3749X40294659324"). But this didn't work.
This file is outside tomcat folder.
Does the page require authentication? Can you disable authentication as a troubleshooting measure?
No, authentication is not required.
Thanks,
Eshwari
The file you have referenced won't load for me. Can you supply a publicly accessible version?
The file I want to print stores in unix server in which tomcat is also placed. The application we use is deployed in the tomcat container. File is outside tomcat folder.
Thanks,
Eshwari
> The file I want to print stores in unix server in which tomcat is also placed. The application we use is deployed in the tomcat container. File is outside tomcat folder.
Hi Tres,
Here is the output of the console when I used qz.appendFile("http://sharp.appsahyd.com/home/aasc/aasc/labels/1Z3749X40294659324")
url in readRawFile : file:/C:/Users/venkateswaramma.mall/Desktop/http:/sharp.appsahyd.com/home/aasc/aasc/labels/1Z3749X40294659324
java.io.FileNotFoundException: C:\Users\venkateswaramma.mall\Desktop\http:\sharp.appsahyd.com\home\aasc\aasc\labels\1Z3749X40294659324 (The filename, directory name, or volume label syntax is incorrect)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(Unknown Source)
at java.io.FileInputStream.<init>(Unknown Source)
at sun.net.www.protocol.file.FileURLConnection.connect(Unknown Source)
at sun.net.www.protocol.file.FileURLConnection.getInputStream(Unknown Source)
at java.net.URL.openStream(Unknown Source)
at qz. FileUtilities.readRawFile(FileUtilities.java:73)
at qz. PrinterApplet.startJavaScriptListener(PrinterApplet.java:172)
at qz. PrinterApplet.mav$startJavaScriptListener(PrinterApplet.java:51)
at qz. PrinterApplet$1.run(PrinterApplet.java:134)
at java.security.AccessController.doPrivileged(Native Method)
at printer.AascPrinterApplet.run(AascPrinterApplet.java:129)
at java.lang.Thread.run(Unknown Source)
Few more questions
· I am setting the number of copies as qz. .setCopies(1); but printing 2 copies of same file.
· When trying to print 2 files one by one on a single button click, first file is not printing whereas second file is printing. If I try to print only first file, it printed successfully. How to print more than 1 file in one cycle on 1 button click
Thanks,
Eshwari
From: Tres Finocchiaro [mailto:tres.fin...@gmail.com]
Sent: Friday, June 19, 2015 7:44 AM
To: Venkateswaramma Malluru
Cc: qz-p...@googlegroups.com
Subject: Re: Not printing EPL and ZPL format Labels
> The file I want to print stores in unix server in which tomcat is also placed. The application we use is deployed in the tomcat container. File is outside tomcat folder.
Hmm... Something is wrong as it is trying to grab the file using a relative path.
Sorry if you have already specified, but are you using 1.9.2? The QZ Tray desktop version or the QZ Print applet version?
Hi Tres,
We have downloaded 1.9.2 QZPrint applet version, but there is no source code in the downloaded file. So still using the freeware code.
We are using qz.appenPrint(path) ---> Here path is a substring of window.location.href concatenated with the actual label path in the server
Now we are getting the path as below in the java console when we try to print the label
java.io.FileNotFoundException: http://sharp.appsahyd.com:8080/home/aasc/aasc/labels/1Z3749X40294659324
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at java.net.URL.openStream(Unknown Source)
at printer.FileUtilities.readRawFile(FileUtilities.java:73)
at printer.PrinterApplet.startJavaScriptListener(PrinterApplet.java:171)
at printer.PrinterApplet.mav$startJavaScriptListener(PrinterApplet.java:51)
at printer. PrinterApplet$1.run(PrinterApplet.java:134)
at java.security.AccessController.doPrivileged(Native Method)
at printer. PrinterApplet.run(PrinterApplet.java:129)
at java.lang.Thread.run(Un
our folder structure in UNIX is as below
/home/aasc/aasc/tomcat --> path from root where tomcat is placed
/home/aasc/aasc/labels/ --> is the path where labels are saving in the server
Please let us know how to get access to the files saved in labels folder that are placed outside the tomcat in the server. We have to resolve this at high priority.
Thanks,
Eshwari
From: Tres Finocchiaro [mailto:tres.fin...@gmail.com]
Sent: Friday, June 19, 2015 6:32 PM
To: Venkateswaramma Malluru
Cc: qz-p...@googlegroups.com
Please let us know how to get access to the files saved in labels folder that are placed outside the tomcat in the server. We have to resolve this at high priority.
Hi Tres,
We have a requirement of printing more than 1 document on click of button. For this we are looping the print request calling. Here all the requests are going properly but only the last document sent in the request to printer is printing.
How to print the multiple labels at a time.
Hi Tres,
In anyway, but the requirement is to print all the labels (either ZPL or EPL) and the documents(pdf) that are passed to the printer at 1 point of time(I mean on single click of a button).
We are using appendFile() for ZPL , EPL and appendPDF() for pdf.
How to use counter method for calling appendfile() and print() methods synchronously.
var counter = -1;
var files = ["raw1.txt", "raw2.txt", "raw3.txt"];
function appendFiles() {
// Manually fire the done appending function
qzDoneAppending();
}
function qzDoneAppending() {
if (++counter < files.length) {
qz.appendFile(getPath() + files[counter]); // getPath() helps resolve URL
} else {
qz.print();
}
}
Hi Tres,
Thanks for help out printing multiple files at a time. Now we are able to print multiple files at a time.
Can we print multiple copies of same file at a time.
Now we are saving labels inside Tomcat and the path is TOMCAT_HOME/labels/ and when tried to print using location.href getting Exception as below
file : http://172.16.0.13:8080/labels/794642734816
Exception: java.io.FileNotFoundException: http://172.16.0.13:8080/labels/794642734816
Tried placing labels inside webapps and outside webapps folder of the Tomcat. Please let us know how to print the files that are saved inside tomcat on the server.
Can we print multiple copies of same file at a time.
tried placing labels inside webapps and outside webapps folder of the Tomcat. Please let us know how to print the files that are saved inside tomcat on the server.