Print to Sharp MX-M654 from Python

Joined
Jan 24, 2023
Messages
2
I have a Python script to print PDF files. It works fine until I try to send commands to change trays. I get an "Access Denied" error. It there setting I can configure to allow changing settings from the Python script?
 
Joined
Jan 24, 2023
Messages
2
clarification: The Access Denied error is the result of these lines. I have tried using ADMINISTER in place of ALL_ACCESS but get the same results.
#PRINTER_DEFAULTS = {"DesiredAccess":win32print.PRINTER_ALL_ACCESS}
#pHandle = win32print.OpenPrinter(printer_name, PRINTER_DEFAULTS)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top