none
how to distinglish 2007 2010 format in word 2010 RRS feed

  • Question

  • word 2010, open a file 1.docx

    how do I know the file is created by word 2007 or word 2010?

    I am using word 2010 addin (VSTO)

    Friday, February 22, 2013 3:13 AM

Answers

  • Hi Marletto

    I believe this returns the version of Office used as the basis for a document:
       ActiveDocument.CompatibilityMode

    It returns an integer value that represents the version. 12 for 2007 and 14 for 2010, for example.


    Cindy Meister, VSTO/Word MVP, my blog

    Friday, February 22, 2013 8:08 AM
    Moderator