none
Compatibility issues with MS office Microsoft.Office.Interop.Word RRS feed

  • Question

  • Hi,

    Is there any common dll for all the version of MS Word, so that it will support all the Ms Word documents (independent of MS Word version).

    Except keeping latest dll of MS Word.

    Thanks in adnavce.

    • Moved by Bob Wu-MT Friday, January 18, 2013 7:00 AM
    Wednesday, January 16, 2013 1:20 PM

Answers

All replies

  • Hi,

    If you would like to create Word documents independent of the version of Word on the machine your application is running on, try not using Word to create the document :)

    A good way to do this is using OpenXML. You can find version 2.0 of the OpenXML SDK here: http://www.microsoft.com/en-us/download/details.aspx?id=5124

    Office Open XML (also informally known as OOXML or OpenXML) is a zipped, XML-based file format developed by Microsoft<sup class="reference" id="cite_ref-2">[2]</sup> for representing spreadsheets, charts, presentations and word processing documents. The Office Open XML specification was initially standardised by Ecma (as ECMA-376) and later by ISO and IEC (as ISO/IEC 29500).

    Starting with Microsoft Office 2007, the Office Open XML file formats have become the default<sup class="reference" id="cite_ref-microsoft.com_3-0">[3]</sup> target file format of Microsoft Office.<sup class="reference" id="cite_ref-courierpress.com_4-0">[4]</sup><sup class="reference" id="cite_ref-knowledge.wharton.upenn.edu_5-0">[5]</sup> Microsoft Office 2010 provides read support for ECMA-376, read/write support for ISO/IEC 29500 Transitional, and read support for ISO/IEC 29500 Strict.<sup class="reference" id="cite_ref-6">[6]</sup> Microsoft Office 2013 additionally supports both reading and writing of ISO/IEC 29500 Strict.<sup class="reference" id="cite_ref-Doug_Mahugh_blog_7-0"></sup>

    Hope this helps


    Please mark the best replies as answers
    Blog: bloggingabout.net/blogs/rick
    Twitter: @rickvdbosch

    Thursday, January 17, 2013 9:08 AM
  • Hi Jitendra Faye,

    I think there no such common dll  for all office versions,one way u can do is find which version is installed and load that version dll ,

    but best way is as Rick said using open xml

    you can find out office using below link

    http://www.codeproject.com/Articles/26520/Getting-Office-s-Version


    suresh


    Thursday, January 17, 2013 9:58 AM
  • Hi,

    Could you please send me lines of code to load particular dll based on installed ms word.

    Thanks

    Monday, January 21, 2013 5:40 AM
  • Hi Jitendra

    This message has been moved by "Contingent Staff" and we here in the VSTO forum have no information on where it originated. What kind of project are you working on?

    In the newer versions of the .NET Framework you can embed the interop types from a PIA which will make it version independent, so long you're not using any functionality not present in the version of Word your code ends up working with.


    Cindy Meister, VSTO/Word MVP, my blog

    Monday, January 21, 2013 4:30 PM
    Moderator