Skip to content
\n

I think you need to install the pywin32 package in order to use the printer.Win32Raw() connector.
\nAlso, your shared printer must be able to print remotely from PC2, since the connector just forwards raw ESC/POS commands to the Windows print API.

","upvoteCount":2,"url":"https://github.com/python-escpos/python-escpos/discussions/506#discussioncomment-5001678"}}}
Discussion options

You must be logged in to vote

Hi @pruifernandes !

Yes, it is possible thanks to the Win32Raw() connector.
You can see this reply.

Usage:

import escpos.printer as printer

p = printer.Win32Raw(printer_name='your_shared_printer_name')
p.open()
p.textln("Hello Win32Raw!")
p.close()

I think you need to install the pywin32 package in order to use the printer.Win32Raw() connector.
Also, your shared printer must be able to print remotely from PC2, since the connector just forwards raw ESC/POS commands to the Windows print API.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@pruifernandes
Comment options

Answer selected by pruifernandes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants