Hello,

thank you for your reply. I have tried to use this method:

ctDocument.getBody().getSectPr().getPgSz().setOrient(STPageOrientation.LANDSCAPE);
 

but for the CTSectPr object I get a NullpointerException. I couldn't find
the reason for this. 
Can you tell me, how I can get this object.

Thanks

--
View this message in context: 
http://apache-poi.1045710.n5.nabble.com/Landscape-format-for-a-word-document-XWPFDocument-tp4346297p4374072.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