Page 1 of 1

get total cell content into a single string

PostPosted: Mon Jan 31, 2011 8:55 pm
by raman_jill
hello
i am trying to get the table contents into java. some table contents [cell data ]are split into different jaxb elements.how to read table contents cell by cell

Re: get total cell content into a single string

PostPosted: Tue Feb 01, 2011 12:01 am
by jason
I take it you want the text content of the tc?

You can either use org.docx4j.TextUtils, or TraversalUtil (see the main method for an example which prints the contents of Text objects)