Questions tagged [qz-tray]

Use the qz-tray tag for questions relating to QZ-Tray, a industry printing software and more for your web browser.

What is QZ Tray? It's a cross-browser, cross-platform plugin for printing (and talking to serial/usb devices. Developed by QZ Industries, LLC a small software development company, owned and operated by Tres Finocchiaro and Lite Finocchiaro and operates out of Canastota, NY.

Industry printing and more from your web browser.

38 questions
6
votes
2 answers

Receipt thermal printer in Electron

I need to find a way of printing receipts in javascript from Electron. I already tried QZ-TRAY but it doesn't work because of Electron. I also tried node-thermal-printer but it also never worked for me. Does anybody here know how you can print…
Gilbert Gabriel
  • 422
  • 2
  • 8
  • 23
4
votes
3 answers

qz is not defined qz_tray

I have been looking for a solution to print from web on client side this (https://medium.com/@yehandjoe/angular-2-raw-printing-service-56614d358754) is what i have been following it suggests to use qz tray to get access for printer. I have copied…
Shariq
  • 51
  • 1
  • 6
4
votes
2 answers

Suppress "localhost wants to access connected printers Untrusted Website" when accessing Printers - QZ-tray

How to properly Suppress the localhost wants to access connected printers Untrusted Website modal when accessing printers? I've tried to create a certificate through this OpenSSL command: openssl req -new -newkey rsa:2048 -sha256 -days 365…
quarks
  • 33,478
  • 73
  • 290
  • 513
3
votes
1 answer

how to print indian languages in ESC/POS printer? how to encoding?

I’m using Qz-tray ESC/POS printer. printer print the Tamil characters like ????????. Some people say I need to enable encoding the Indian character code page. How to find the Tamil language code page number? Sample code: this.get_dashes('\x2D', 48)…
Bot coder
  • 75
  • 4
2
votes
1 answer

How to declare size in qz-tray Esc/pos rawprinting?

i'm Using qz-tray raw printing ESC/POS. i can't set Size of the Image data.. How to set size(width and height) of the image format without affect other data.? code: var config = qz.configs.create("Printer Name"); var data = [ { type: 'raw',…
Bot coder
  • 75
  • 4
2
votes
0 answers

qz-tray Esc/pos Qr code not Generating, how to fix this problem?

i've Just copy the qz-tray ESC/POS qr code program. qz-tray esc/pos qrcode printer works perfectly and connection also done successfully. But qr code is not generated. printer print Like this... 1P0https://qz.io 1A11C 1E0 printer print this…
Bot coder
  • 75
  • 4
2
votes
1 answer

Compiling QZ Tray with ant using self signed certificate

I am trying to compile QZ Tray application with a self signed certificate using the ant command-line on a Mac. I have been following the official guide. After checking out the code, I generated a certificate and key and used the following…
umutesen
  • 2,523
  • 1
  • 27
  • 41
2
votes
0 answers

qz-tray.js raw printing. Print job getting cancelled from printer queue

I am using qz-tray to print some bills using a dot matrix printer (Epson LX 310). The code I use is as follows qz.websocket.connect().then(function() { console.log("Connected!"); }); var printer = "Epson LX-310"; var config =…
Aneeez
  • 1,422
  • 3
  • 15
  • 20
2
votes
1 answer

Error: Unsupported WebSocket version detected: HyBi-00/Hixie-76

I'm tried to integrate my angular 7 web app with QZ Tray for printing without a preview dialog. But got unsupported WebSocket version. Please help me resolve it? Thanks - Dependencies "dependencies": { "@agm/core": "^1.0.0-beta.6", …
Son Vinh
  • 21
  • 2
2
votes
1 answer

QZ Tray multiple page print of raw html with css3 and table head repeats

I'm trying to use qz-tray for printing a raw html that contains a table that can go over 2-3 pages.. I put a table head so that it repeats on every page.. But once i send to data to qz tray, i don't see the heads being repeated, also the print is…
JiN
  • 818
  • 1
  • 7
  • 14
2
votes
1 answer

Angular 6 with qz-tray

I have Angular CLI :7.3.4, Node:10.15.1. I have npm install qz-tray. I have my service.ts: import { Injectable } from '@angular/core'; import 'rxjs/add/operator/map'; import { from , Observable } from 'rxjs'; import * as qz from 'qz-tray'; import {…
Scorpy47
  • 87
  • 2
  • 13
1
vote
0 answers

Printing a PDF with exact dimensions directly using QZ tray with raw EPL command miss-aligns PDF on label

I'm trying to print a single-page PDF with a specific dimension onto a label (or ribbon). Let's say for this example the dimensions are 0.63" wide and 11.81" long. I'm using QZ Tray to handle printing directly from the browser. The problem The…
Martie
  • 280
  • 1
  • 8
1
vote
1 answer

Use multiple printers in JavaScript

I need to print labels and receipts using a web app. Im using vanilla js. Before printing, I need a way to specify the printer in a js function. How best can I do that? or if I can have something that allows me to print that on the client side. I…
1
vote
0 answers

Barcode CODE_128 using PrintHTML with Qz Tray

Good Day All, Right now, i'm trying to print using HTML with Qz-Tray. Can i make a barcode on that template HTML. The Problem is, that HTML template is STRING so it can not be change it using Javascript and I'm Trying to use Libre Font 128 Font…
Avian Driyanto
  • 93
  • 2
  • 11
1
vote
1 answer

TypeError: qz.security.setCertificatePromise(...) is undefined

I try to make a static simple page using HTML, JS, QZ-Tray that can print a mock data into LQ-310 printer. I've been follow how to sign in JS from QZ-Tray wiki. However, I still have pop up message like below: I've changed the flow from server side…
Rusydy
  • 53
  • 5
1
2 3