Python win32print changing advanced printer options

前端 未结 1 1595
攒了一身酷
攒了一身酷 2020-12-10 14:46

I am using python 2.7 and win32print. I can successfully change the orientation between portrait and landscape:

PRINTER_DEFAULTS = {\"DesiredAccess\":win32pr         


        
1条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-10 15:03

    from ctypes import windll
    windll['winspool.drv'].AdvancedDocumentPropertiesA(None, pHandle.handle, '300LN1', None, None)
    

    0 讨论(0)
提交回复
热议问题