tags:

views:

46

answers:

1

I have a Python program that creates an excel sheet, but I have been asked by one of the users to modify it so that if he hits print it will print out to landscape mode, without him having to specify this. Is there some way to set the sheet to landscape in XLWT or some similar Python library for excel?

Thank you.

+1  A: 

With XLWT, I believe it's as easy as:

worksheetObject.portrait = False
Mark
Perfect, thank you.
TimothyAWiseman