Retrieving the COM class factory for component error while generating word document

前端 未结 8 1060
时光取名叫无心
时光取名叫无心 2021-01-02 12:45

I am trying to edit a word document from VB.NET using for the most part this code:

How to automate Word from Visual Basic .NET to create a new document

相关标签:
8条回答
  • 2021-01-02 13:08

    I had the same problem while generating word document. The issue i solved by checking the task manager, and by ending the currently running process WINWORD.EXEs and then executed my code again. The issue gone.

    0 讨论(0)
  • 2021-01-02 13:11

    This appears to be what you are experiencing.

    http://social.msdn.microsoft.com/Forums/en-US/netfxbcl/thread/006cbbac-101a-40ea-ae16-d59a7a2da8b1

    0 讨论(0)
提交回复
热议问题