Is it possible to check the print result with raw printer emulator?

3,195 views
Skip to first unread message

Han MingYun

unread,
Sep 25, 2019, 6:48:55 AM9/25/19
to qz-print
Hello
I am trying to print receipt with qrcode with qz-tray 2.0
Because I have not physical device, I am using printer emulator that was pointed in https://qz.io/wiki/printer-emulators
For test, I added 2 printer emulators such as ESC/POS, Zebra like attached screenshot.
But I can't find a way how to check the printing result.

When I don't use qrcode printing, I used Microsoft XPS writer and result was checked by *.oxps file.
But it is not working after I use qrcode print.

Hope you check the screenshot and help me.
Thanks


da68d747b55c184eb2484571eeeb7510.png

Kyle LaBarge

unread,
Sep 25, 2019, 9:00:44 AM9/25/19
to Han MingYun, qz-print
Hi Han,

Neither of those printers look like valid virtual printers for raw printing.

I recommend you create a virtual file printer and inspect the "text" output for validity.

  • By default, the output is saved to your documents folder.

If you're printing ZPL, you can use Labelary to manually view the rendered ZPL: http://labelary.com/viewer.html

Hope that helps!



Kyle LaBarge


--
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/0b61319a-7414-4da0-af14-99bc69c7c28a%40googlegroups.com.

Han MingYun

unread,
Sep 25, 2019, 9:18:50 AM9/25/19
to qz-print
When I print with printer emulator *.prn file is created.
But I can't check this file is correct or not.
I tried to check by changing the extension to *.xps, but it is not allowed.
So, I have still trouble for this.
Would you like to see whether my javascript code is correct or not?

On Wednesday, September 25, 2019 at 9:00:44 PM UTC+8, Kyle LaBarge wrote:
Hi Han,

Neither of those printers look like valid virtual printers for raw printing.

I recommend you create a virtual file printer and inspect the "text" output for validity.

  • By default, the output is saved to your documents folder.

If you're printing ZPL, you can use Labelary to manually view the rendered ZPL: http://labelary.com/viewer.html

Hope that helps!



Kyle LaBarge


On Wed, Sep 25, 2019 at 6:49 AM Han MingYun <hanming...@gmail.com> wrote:
Hello
I am trying to print receipt with qrcode with qz-tray 2.0
Because I have not physical device, I am using printer emulator that was pointed in https://qz.io/wiki/printer-emulators
For test, I added 2 printer emulators such as ESC/POS, Zebra like attached screenshot.
But I can't find a way how to check the printing result.

When I don't use qrcode printing, I used Microsoft XPS writer and result was checked by *.oxps file.
But it is not working after I use qrcode print.

Hope you check the screenshot and help me.
Thanks


--
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-p...@googlegroups.com.

Kyle LaBarge

unread,
Sep 25, 2019, 10:15:12 AM9/25/19
to Han MingYun, qz-print
Hi Han,

When I print with printer emulator *.prn file is created.
But I can't check this file is correct or not.
I tried to check by changing the extension to *.xps, but it is not allowed.

This won't work. Raw languages are proprietary and there's no "viewer" we are aware of other than the previously linked labelary. You can edit the *.prn file with a text editor to verify the "printed" raw code.

There is a Chrome app "Zpl Printer" that's in our Raw Printer Emulator wiki that we've used with success. It only works for ZPL output.

Also in our printer emulator wiki is "QPCPrint" for ESC/POS. It requires Windows 7 and for UAC to be disabled on the system to work.

I hope that helps.

Kyle LaBarge


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/495db46e-fe0a-490c-bb51-40bab350b518%40googlegroups.com.

SYSTEM&WEB S.A.

unread,
Dec 27, 2023, 11:55:04 AM12/27/23
to qz-print
ESC/P and ESC/P2 are not related to ESC/POS, 
you cannot use QPCPrint if you want to print ESC/POS data. 
Please always use the demo first to see if QPCPrint works for you. If not your data is probably not in ESC/P format.

Tres Finocchiaro

unread,
Dec 27, 2023, 12:13:43 PM12/27/23
to SYSTEM&WEB S.A., qz-print
Yes, this recommendation from 2016 to use ESC/P emulator for ESC/POS was incorrect.

We are not aware of any ESC/POS emulators.

SYSTEM&WEB S.A.

unread,
Dec 27, 2023, 12:30:26 PM12/27/23
to qz-print
I found receipt-print-hq/escpos-tools/esc2html.md
That script shows a preview in html, to use it as emulator, I just set up a service that receives the raw and executes the script, showing the html in an iframe

Tres Finocchiaro

unread,
Dec 27, 2023, 12:45:25 PM12/27/23
to SYSTEM&WEB S.A., qz-print
Thanks, well get this added this to our emulator page.

Reply all
Reply to author
Forward
0 new messages