how to work with word document? RRS feed

  • Question

  • Hello,

    I want to do the next, but don't know how to do it, please help me.

    First, I open the Word document by wordApp.Documents.Open

    then I try to save it by another name to make a copy using   aDoc.SaveAs(ref saveas...);

    Now I want to go through the savedAs document word by word. I need to get every word and go through the word letter by letter.
    So, actually I want to get the word, check it for some rules, then get read that word letter by letter and make changes (transliterate) to those letters, so in the end I will have the transliterated document. I was trying to write this code using for loop insdie for loop, but I don't know how can I loop the whole document word by word... and at the same time rewrite the new form of word instead of the currently taken word.

    Please, help me with right Interop.Word commands to implement this.

    thank you

    Thursday, February 21, 2013 1:24 PM


All replies