Click to See Complete Forum and Search --> : find in a table of word document


buzzer0x0004
December 15th, 2005, 07:16 AM
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 !!!!
}

buzzer0x0004
December 16th, 2005, 10:08 AM
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.