Html file printing blank through ESCPOS

625 views
Skip to first unread message

Mitch Waetke

unread,
Apr 9, 2021, 9:55:49 AM4/9/21
to qz-print
I have been recently testing with this program and everything works fine until I try to print my html page via USB to my receipt printer. The language they accept is ESCPOS but every time I print the html page it's blank! I am unsure why as there are no errors reading the html file, finding the proper printer or configuring the data. 

Lite Finocchiaro

unread,
Apr 9, 2021, 10:41:42 AM4/9/21
to Mitch Waetke, qz-print
Mitch:

Can you give us some more information? Printer make and model, Operating System, and Java version as well as QZ-Tray version?

In addition, the HTML that you're trying to print would be helpful, as well as a code snippet for your print function.

The easiest way to print HTML to a receipt printer is by using a manufacturer-supported driver. This will convert the HTML to a raster graphic to be printed by the printer.

Alternatively, you can use our rawHTML feature to print HTML using a generic raw/text-only queue (driverless).

Finally, JavaFX provides the ability to print HTML for QZ-Tray. The JavaFX version that we bundle with QZ-Tray works best with AdoptOpenJDK 11, Hotspot. If you are on a newer version of Java, (or on Java 9 or 10) it may not work with our bundled version of JavaFX.

I look forward to your reply.

Kind regards,

Lite
VP @ QZ Industries

On Fri, Apr 9, 2021 at 9:55 AM Mitch Waetke <waetke....@gmail.com> wrote:
I have been recently testing with this program and everything works fine until I try to print my html page via USB to my receipt printer. The language they accept is ESCPOS but every time I print the html page it's blank! I am unsure why as there are no errors reading the html file, finding the proper printer or configuring the data. 

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/qz-print/df32128d-e50e-4d50-a1a0-e3daa697b4afn%40googlegroups.com.

Lite Finocchiaro

unread,
Apr 12, 2021, 9:22:38 AM4/12/21
to Mitch Waetke, qz-print
+qz-print
 
Mitch:

I have put the email list back on copy.

So it looks like you're using the printRawHTML method based on your comments regarding the demo page. To be clear, you're using the Raw tab, ESC/POS button, and HTML when testing, correct?

We pre-fill the Render Width field with 480 on our sample page, so that would explain only the left side printing. You may want to add this parameter to your options based on the width of your thermal receipt paper.

Other than that, your code looks fine. Is it possible the file name is incorrect or perhaps the path to the html is different?

QZ-Tray logs would help here. If there's any sensitive information in them, you can send them directly to me. Another way to see where things are going wrong would be to right click on the browser and choose "Inspect Element" or "Inspect" to view the browser console and subsequent logs from the browser. You might see a 404 error for your printable html.

Kind regards,




On Fri, Apr 9, 2021 at 10:54 AM Mitch Waetke <waetke....@gmail.com> wrote:
Lite,

Sure thing! The printer is an RP-630 from PARTNER, I am running on windows 10, Java version 8 and QZ-Tray version 2.1.2.

Attached is the html file and picture of the area of code to print the html file.

I have installed the proper drivers as the html file using ESC/POS works via the Demo portion of qz.io, but for some reason only the left half seems to print and the other half is cut off.

Thank you!!


Reply all
Reply to author
Forward
0 new messages