Select to view content in your preferred language

Page and Printer Setup

1214
2
03-17-2011 09:30 AM
ScottOatley
Emerging Contributor
Greetings:

Is there a way to change settings for Page and Printer Setup? Specifically, I'd like set Map Page Size width and height from a python script.

Thank you,
Scott
Tags (2)
0 Kudos
2 Replies
ScottOatley
Emerging Contributor
Looks like this isn't supported in python so I'll give .net a try.

Scott
0 Kudos
KimOllivier
Honored Contributor
Import win32print and set the printer properties.
Open up the help for PythonWin and you will see a module win32print which has all the functions that appear in the Windows printer settings dialogs. However it would only set printer attributes, not custom driver attributes such as map size.

import win32print
win32print.GetDefaultPrinter()
\\\\PUMA\\HPColourLaser
0 Kudos