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

前端 未结 8 1061
时光取名叫无心
时光取名叫无心 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条回答
  •  -上瘾入骨i
    2021-01-02 13:04

    I was experiencing the same issue and the problem area I found was "security configuration for Microsoft Word in DCOM". On the following link you can find a step by step guide to know how to config components in DCOM, repeate these steps for WORD, and your problem will be solved.

    http://www.biocompsystems.com/_public/DCOMConfigurationStepbyStepForXP.doc

    Thanks, Sushil Jinder

提交回复
热议问题