find in a table of word document
Hi everyone!
I run Word document from my application and I want to find a word in table of that document! But I do it wrong. Can some one help me?
I do like wrote below:
Word.Table TBL1
object missingValue = Type.Missing;
object findStr;
findStr = "test";
if (TBL1.Range.Find.Execute(ref findStr, ref missingValue, ref missingValue,
ref missingValue, ref missingValue, ref missingValue,
ref missingValue, ref missingValue, ref missingValue,
ref missingValue, ref missingValue, ref missingValue,
ref missingValue, ref missingValue, ref missingValue))
{
}
else
{
// always else !!!!
}
Re: find in a table of word document
Sorry I can't send letter early about the example is right.
But a function which takes text from cell of tables takes string with special letters like this ( hello\r\a) and so why "find" finction haven't been able to find that string in another document.