Hi Nick, Your suggestion worked very nicely. Thank you so much for your advice!
Best regards, ShuiChen --- On Fri, 1/13/12, Nick Burch <[email protected]> wrote: > From: Nick Burch <[email protected]> > Subject: Re: POI XWPF: is it possible to get contents from the BodyElement > To: "POI Users List" <[email protected]> > Date: Friday, January 13, 2012, 6:17 AM > On Thu, 12 Jan 2012, Shuichen Zhang > wrote: > > Could anyone advise how to get text from an > BodyElement? Thanks in advance! > > First you need to check what type it is: > http://poi.apache.org/apidocs/org/apache/poi/xwpf/usermodel/IBodyElement.html#getElementType() > > From that, you can cast it to a XWPFParagraph or XWPFTable, > both of which provide ways to get their text > > Nick > > --------------------------------------------------------------------- > 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]
