Setting an excel sheet in landscape mode from XLWT

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.


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

worksheetObject.portrait = False

Leave a Reply

Your email address will not be published. Required fields are marked *