Interop.Word Documents.Open is null

前端 未结 7 1936
梦毁少年i
梦毁少年i 2020-11-30 02:42

I am trying to open .docx file and convert to PDF using Interop.Word.Application. It works as console application but If I use the same in my web application it doesn\'t wor

7条回答
  •  既然无缘
    2020-11-30 03:15

    If you are still looking for the answer I have found it just a moment ago for my project.

    Open DCOM Config Settings:

    1. Start -> dcomcnfg.exe
    2. Computer
    3. Local Computer
    4. Config DCOM
    5. Search for Microsoft Word 97-2003 Documents -> Properties

    Tab Identity, change from Launching User to Interactive User

提交回复
热议问题