Hi All,
I am using Essential DocIO 4.4.0.51 for existing word document editing. The existing document contains one table need to find the string and replace with some other string.
Please guide the code lines for this.
Thanks in advance,
Rambabu
AD
Administrator
Syncfusion Team
November 4, 2008 03:22 PM UTC
Hi RamBabu,
In 4.4 version, you can find and replace text as follows:
docSource1.Replace("Text To be replaced","New Text",true,true);
This will replace the text found anywhere in the document.
You can also find and replace using Bookmark names.
Bookmark replacement and Find and replace samples can be found at following location:
C:\Program Files\Syncfusion\Essential Studio\4.4.0.51\Windows\DocIO.Windows\Samples\
Also, we improved DocIO find and replace technique in our latest version allowing more flexibility. Can you please consider upgrading?
Please take a look into it and let me know if you have any questions.
RP
Rambabu Pusala
November 5, 2008 04:47 AM UTC
Hi Dhivya,
Thanks for the replay, Present I am using the Replace function. But in the document we have two sentences with same formate and same words like "Fax Number :". So, I need to find first one in the table and replace with "Fax Number : 123-456-7891".
My intension is go to particular cell and try to replace the sting. So please help for this.
Thanks,
Rambabu.
GM
Geetha M
Syncfusion Team
November 5, 2008 10:57 AM UTC
Hi Rambabu,
With ES version 4.4.0.51, you can make use of Bookmark to replace one of the texts. Please go through the sample in the below location:
C:\Program Files\Syncfusion\Essential Studio\4.4.0.51\Windows\DocIO.Windows\Samples\2.0\Interactive Feature\Bookmark_Navigation\
Kindly let me know if you have any other questions.
Regards,
Geetha