by Grzegorz Graniczkowski

menu start ->run -> mmc /32

add in: Component Services
my Computer -> DCOM Config -> find  MS Word APP – can have other CLSID as in error message

MS Word APP name: Document MS Word 97-2003 {000209FF-0000-0000-c000-000.(0).46 }

Change Security -> launch and Activation permissions -> Customize, add user and password  (PSTS/PBs)
Change Identity -> Identity -> This user

check folders exists and user have permission to this folers

for x64 system is necessary to create the following folder: C:\Windows\SysWOW64\config\systemprofile\Desktop
for x86 system: C:\Windows\System32\config\systemprofile\Desktop

 

links:
http://emalvass.blogspot.com/2010/01/how-to-use-office-2007-automation-in.html?m=1
http://www.devcity.net/Articles/239/2/article.aspx
https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2008-R2-and-2008/cc749541(v=ws.11)?redirectedfrom=MSDN