Tag Archives: soso

Office com reports an error. It seems that Microsoft’s test is no more than soso

Using c# to write a program to operate word, the machine test is no problem. Get a virtual machine and conduct compatibility test in the XP below. It is found that this error is reported:

InvalidCastException: Unable to cast COM object of type ‘Microsoft.Office.Interop.Word.ApplicationClass’ to interface type ‘Microsoft.Office.Interop.Word._Application ‘. This operation failed because the queryinterface call on the COM component for the interface with IID’ {00020970-0000-0000-c000- 000000000046} ‘failed due to the following error:

Finally, it was found that the initial installation was the simplified version of office 2007 that came with ghost. There were residues when uninstalling 2007, which interfered with office 2003. Find the 00020970-0000-0000-c000- 000000000046 primary key. The following typelib item is {00020905-0000-0000-c000- 000000000046}. Then find the {00020905-0000-0000-c000- 000000000046} primary key. The following two items are 8.3 and 8.4. 8.3 is office 2003 and 8.4 is office 2007. Delete branch 8.4. The program runs normally

It has always been thought that Microsoft’s commercial software has the best compatibility. Now it seems that Microsoft’s compatibility test is just like this. Office, a heavyweight software, also has the problem of unclean version uninstallation

Transferred from: http://www.cozyboy.com/archives/79.html