From 15c18f225e4c9815da499a1b7e9749e191b5c58f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Hern=C3=A1ndez?= Date: Wed, 27 Oct 2021 17:35:53 -0500 Subject: [PATCH] Update printer.py without the call to open function, the printer isn't initialize to print, i tested on a generic and epson physical printers. --- src/escpos/printer.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/escpos/printer.py b/src/escpos/printer.py index 47834f6..7a0f7f3 100644 --- a/src/escpos/printer.py +++ b/src/escpos/printer.py @@ -364,6 +364,7 @@ if _WIN32PRINT: else: self.printer_name = win32print.GetDefaultPrinter() self.hPrinter = None + self.open() def open(self, job_name="python-escpos"): if self.printer_name is None: