0

I have a kyocera printer with 5 different drawers and I need to create a program with Python that allows you to choose which drawer will be used.

In order to do that, I need to access the print settings in the control panel, and change the "drawer" option there.

I can only access the printers with the following code:

os.system('control.exe /name Microsoft.Printers')

I dont seem to have any way to access the settings of the printer itself. Any suggestions?

prgrm
  • 3,734
  • 14
  • 40
  • 80

1 Answers1

1

If you have pywin32 installed, it appears to have that ability, but I personally have never used it.

These two posts might be of some use to you:

Change printer tray with pywin32

Python win32print changing advanced printer options

Community
  • 1
  • 1
Michael.D
  • 26
  • 3