I think - that is think - that the only solution is to write code to
calculate the widths of all of the columns on the worksheet and then compare
this to the wodth of the page. If the former is greater that the width of a
page in portrait orientation, then you will need to shift to landscape. I
have not used POI for quite some time now and am not up to date on any
changes, but I do not think there is an inbuilt method that will tell you
the required page width.
-- 
View this message in context: 
http://apache-poi.1045710.n5.nabble.com/detect-print-orientation-for-excel-sheets-tp3220373p3228816.html
Sent from the POI - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to