Page 1 of 1

Insert a table after specific text

PostPosted: Thu Jan 17, 2013 9:21 pm
by vivekcen5
I would insert table pogramatitcaly, after finding a 'P' text in document. I was able to find specific text, but unlable to insert to table.
If i try to insert to table, it always add the table in end of document.

Any suggestions ?

Re: Insert a table after specific text

PostPosted: Thu Jan 17, 2013 10:01 pm
by jason
documentPart.getJaxbElement().getContent() gives you List<Object>, which has the usual java list semantics: add(int index, E element)

Re: Insert a table after specific text

PostPosted: Fri Jan 18, 2013 2:35 am
by vivekcen5
Thanks Jason

It works