Saving Word document

后端 未结 3 1037
误落风尘
误落风尘 2021-01-21 18:32

I would like to save a Word document according to the Word installed version;

In case it is Word 2003 (appropriate version number is 11), with DOC exten

3条回答
  •  孤独总比滥情好
    2021-01-21 18:51

    That is because you use the wrong version of the interop assemblies. You cannot reference a value which only exists in higher versions of the framework.

    You should use a higher interop version, or create two separate projects, one for the older version of the interop assemblies, one for the higher versions.

提交回复
热议问题