This project has moved and is read-only. For the latest updates, please go here.

Insert table into specific place in document

Jul 7, 2015 at 1:28 PM

I need to insert a table into specific place in document, for example :
I have key-word (%table%) and I want to insert the table instead or after or before this key-word.

Is it possible to do it somehow?
Jul 10, 2015 at 8:49 AM
using(var document = DocX.Load("filename.docx") 
    document.replace("%table%", "NewValue");
Is that what you're after?
Jul 10, 2015 at 8:50 AM
Acutally, that won't work as you can only replace a string with a string :(