Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usb printer not working on web Application #617

Open
ujjain090 opened this issue Jan 9, 2024 · 2 comments
Open

Usb printer not working on web Application #617

ujjain090 opened this issue Jan 9, 2024 · 2 comments

Comments

@ujjain090
Copy link

Hi @ALL,
I am below code for printer connectio
from escpos.printer import Usb
printer = Usb(0x04B8, 0x0202)

My problem is that when the client itself comes to the web application on the system the code deployed on the server system gives no command for print because the client connects the printer to the PC and shares the vendor ID and product ID but not the printer found from backed code. when we are updating vendor id and product id in our code

Code deployed on server system.
Please guide me how to print locally on client system with USB connection printer

@ujjain090
Copy link
Author

Okay,Thanks
Only network connection will work right??

@patkan
Copy link
Member

patkan commented Jan 9, 2024

In order to print locally you would have to execute the python script on the local machine. Establishing this connection is out of scope of this library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants