Page 1 of 1

how to copy table?

PostPosted: Fri Oct 02, 2015 5:54 pm
by yangcom0505
hi ~! I do not know English well.

I made table like below. (there are all sdt content controls.)
캡처.JPG
캡처.JPG (20.9 KiB) Viewed 1369 times


i want to make table Programmatically using up table. like below
캡처2.JPG
캡처2.JPG (32.43 KiB) Viewed 1369 times


how can i make copy table below original table?

thanks! :)

Re: how to copy table?

PostPosted: Tue Oct 06, 2015 8:56 am
by jason
Use deepCopy, at https://github.com/plutext/docx4j/blob/ ... .java#L772
to make a copy of the table or sdt content control

Then add it to documents content list