CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2005
    Posts
    23

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

  2. #2
    Join Date
    Oct 2005
    Posts
    23

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured