how to replace text with table

May 16, 2010 at 8:06 PM

hi

i want to change some text in my word document with specefic table.

tnx

 

Coordinator
May 17, 2010 at 11:58 AM
Hi,

I do not understand your question. Can you please elaborate?

Thanks,
Cathal
May 17, 2010 at 3:23 PM

hi

imagine that i have some text in my word document like this :

----------------------------

hello world

<<param_tbl_Place>>

----------------------------

 

i want to replace text :  <<param_tbl_Place>>  with my own table object.

tnx

Apr 12, 2012 at 10:31 AM
Edited Apr 12, 2012 at 10:43 AM

Hello,

I need the exact same thing....
Any news?? 

Coordinator
Apr 12, 2012 at 10:55 AM

DocX has find() and remove() functions.
Also insertTable() takes an optional index to insert at.

So why not

1) Find the index of the text <<param_tbl_Place>>
2) Remove the text  <<param_tbl_Place>> using the index found in step 1
3) Insert the table at the index found in step 1