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
Similar Posts:
- How to Solve Word experienced an error trying to open
- [Solved] PBI Open Error: WebView2 Process failed: explorationBrowser, Source:https://ms-pbi.pbi.microsoft.com/pbi/Web/Views/reportView.hrm
- How to operate word batch conversion PDF? Can word be converted to PDF at one time?
- [Solved] SQL Server2008 Install Progress to SqlBrowserConfigAction_install_ConfigNonRC_Cpu32 Error
- Syntax error: word unexpected (expect
- Error reported in vscode after installing Git
- Python Visual C++ 9.0 is required [Two Method to Solve]
- Install Office 16 Click to run extensibility component
- Office Visio Install Error: Office 16 Click-to-Run Extensibility Component
- Microsoft report viewer 2012 cannot load related DLL