. NET under "Retrieving the CLSID in the COM class factory as {00024500-0000-0000-c000-000000000046" when you manipulate Excel and Word with Microsoft.Office.Interop.Excel and word }, the component failed because of the following error: 80070005 "error. Now in operation Microsoft.Office.Interop.Word For example, I am local Win7 + Office2007 environment
1: First install Word in Windows r2/win7/win2003/winxp/win2000 os. Then, in Component Services, locate "My Computer", "Computer", "Component Services", "DCOM Configuration". Run, enter Dcomcnfg.exe to start the Component Services.
2: Locate the Microsoft Office Word 97-2003 document in DCOM configuration, right-click on it, and then click Properties to bring up the Microsoft Excel Application Properties dialog box. If the environment is Windows R2, you may not find the "Microsoft Office Word 97-2003 document". You can run mmc-32 and then pop up a program, select Add/Remove Snap-in from the menu, add Component Services, and then locate word under Component Services and then configure the following. (Component cache directory c:\windows\assembly)
3: In the "Identification" tab, select "Interactive User"
4: In the "Security" tab, click "Customize" on "Launch and Activation Permissions", then click on the corresponding "edit" button to add a "NETWORK SERVICE" user in the "Security" dialog box (note To select this computer name) and give it "local launch" and "Local activation" Permissions.
5: In the "Security" tab, click "Customize" on "Access", then click "Edit", in the "Security" dialog box, also add a "NETWORK SERVICE" user, and then give "Local access" permissions
Issues that Windows uses Excel to export