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 !!!!
}
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 !!!!
}