You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by sars84 <sa...@googlemail.com> on 2013/01/30 13:41:45 UTC

XWPF: get a copy form existing Table

Hello everbody,

I have a docx file, opened it and i can read and get the contents. There is
no problem!
But how can I copy a existing Table from this file?I want to replace some
contents of the cells (I kknow how this part work!) and than want to insert
this table which i got changed in the next line (next Paragraph) of the
file.

I couldnot find any exaples to this. There is always simple examples to
create a table in a file! I need to copy the existing table and insert it in
the next line (paragraph).

---Some Code of my Work--
XWPFDocument doc = new XWPFDocument(OPCPackage.open(new
java.io.File(docFile)));
List<XWPFTable> tables = doc.getTables();
XWPFTable tableRegeln = tables.get(1);	
-------

Any Idea how to it?

I am thankful for any Reply!

best Regards
sars



--
View this message in context: http://apache-poi.1045710.n5.nabble.com/XWPF-get-a-copy-form-existing-Table-tp5712020.html
Sent from the POI - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org