On Feb 8, 2012, at 11:24 AM, JavaDev wrote:

> Hi Mark,
> 
> Thanks for your reply. I have been playing around with your code and it is
> very helpful. Reason, I asked the version is "sectPr.getPgMar()" calls a
> method of class "CTPageMgr", but I cannot find this class in any poi-ooxml
> jar files of any poi version - 3.8 or 3.7. So, it is throwing me exception
> on execution. 

Please see this FAQ: http://poi.apache.org/faq.html#faq-N10025

You need to use the full ooxml-schemas-1.1.jar

Regards,
Dave

> 
> However, I did find another class "CTPageMargins", but don't understand how
> to initialize it, to get the same properties as the other one. Moreover, I
> am not even sure if the former class has been replaced by the latter.
> 
> Any help with this is highly appreciated.
> 
> 
> Regards,
> Pankaj
> 
> 
> 
> --
> View this message in context: 
> http://apache-poi.1045710.n5.nabble.com/XWPF-Sections-tp4313854p5467451.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]
> 


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

Reply via email to