none
MS Word Document Reading and Writing without Microsoft.Office.Interop RRS feed

  • Question

  • Hi Experts, 

    Technology: .NET (WPF, WCF MVVM)

    Language: C#

     

    Current Working:

    1. I am using WPF with MVVM Design pattern 

    2. UI transfer file to ViewModel

    3. ViewModel transfer file to WCF Service

    4. WCF Service is Reading and Replacing the BookMarks using Microsoft.Office.Interop.Word and Saves the Document.

     

    Requirement:

    The area of concern is 4th point where document is being processed. What would be the best technique to Read the Bookmarks from MS Word Document (Word 97, 2003, 2007 or above) and replace it with any of my given values without using Microsoft.Office.Interop.Word or Microsoft.Office.Interop. Actually I wanted to check for some other option than Microsoft.Office.Interop.

    1. Open XML works only with Word 2007 and above where I need to work with the Word 97, 2003, 2007 and above.

    2. I am 100% reluctant to use third Party Components due to Application and Company extra dependency and Cost.

    3. Binary/ Stream Reading would be complex to meet the future requirements. If future requirement changes from BookMarks to WaterMarks and so forth.

     

    Kindly Suggest.

     

    Shakeel 

     

    Wednesday, December 7, 2011 9:32 AM

Answers