On Thu, 5 May 2011, jpoi wrote:
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.
Your document might not have a SectPr yet. isSetSectPr() will let you
check if there is one, and addNewSectPr() will add one if there isn't
Nick
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]