Search and Replace not working in tables

I am trying to do a very simple search and replace. Here's the code:

WordDocument document = new WordDocument();
document.Open("test.doc", FormatType.Doc);
document.Replace("$A$", "B", true, true);
document.Save("TestOutput.doc", FormatType.Doc, Response, HttpContentDisposition.InBrowser);

If the $A$ element is not inside a table, it works. If inside a table, the output is always blank ($A$ is replaced with "").

1 Reply

DK Dhivya K Syncfusion Team November 3, 2006 01:12 PM UTC

Hi Roger,

Thank you for your interest in Essential DocIO.I tried testing this issue.I am afraid. I am unable to reproduce the issue.
Here is a sample for your reference.
FindAndReplace.zip


Please take a look into it and let me know if you have any queries.

Can you please provide me a sample or modify this so that I can reproduce the issue.This will help me investigating further on this issue.

Regards,
Dhivya.

Loader.
Up arrow icon