We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Insert table

Hi

I have a worddocument, where I have a $table$, and I would like to insert a table at exact that place in my word doc. 

I have tried with 
dim tableout as string = "<table><tr><td>1</td><td>2</td></tr><tr><td>3</td><td>4</td></tr></table>"
wordDoc.Replace("$table$", tableout, True, True)

But i then insert the HTML instead of the table. Is there a way to insert a table?

Best regards

3 Replies

MT Mutheeswaran T Syncfusion Team June 3, 2013 06:48 PM UTC

Hi Jimmy,

Thank you for using Syncfusion products.

We have prepared a sample illustrate your requirement to replace html string using DocIO. Please do find the sample from the attachment.

Please let us know if you have any other questions.

Regards,
Mutheeswaran.




Sample_7621c0b2.zip


JE Jimmy Escherich June 14, 2013 09:15 AM UTC

Thank you very much.  That is perfect :-)


MT Mutheeswaran T Syncfusion Team June 18, 2013 08:47 AM UTC

Hi Jimmy,

Thank you for your update.

We are glad that the given solution helps. Please let us know if you have any other questions.

Regards,
Mutheeswaran


Loader.
Up arrow icon