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

前端 未结 8 1109
时光取名叫无心
时光取名叫无心 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 12:54

    Go to Start -> Run
    type regedit -32 and press enter key.
    -- Registry Editor will get open.
    Go To registry HKEY_CLASSES_ROOT\Word.Application
    Select Word.Application and set full permission to below users:-
    Administrator, Administrators, Local Service, System, Service, Interactive and Users.

提交回复
热议问题