且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

无法将“microsoft.Office.Interop.Excel.ApplicationClass"类型的 COM 对象转换为“microsoft.Office.Interop.Excel.Application"

更新时间:2023-01-18 16:02:26

如果这不是代码相关的错误,请从注册表中删除下面给定的键.

If this is not a code related error than please remove below given key from registry.

步骤:

开始-->运行-->regedit-->HKEY_CLASSES_ROOT-->TypeLib-->{00020813-0000-0000-C000-000000000046}--> 1.8/1.7(删除这个)

Start--> Run --> regedit --> HKEY_CLASSES_ROOT-->TypeLib-->{00020813-0000-0000-C000-000000000046} --> 1.8/1.7 (Delete this)

解决办法:此问题可以通过删除从更高版本的 Office 中遗留下来的无效注册表项来解决.按照上述步骤操作.

Solution: This issue can be resolved by deleting an invalid registry key left over from the higher version of Office. Follow the above steps.

原因:如果您将 Microsoft Office 版本从 Office 2010 降级到 Office 2007,或将 Office 2013 降级到 Office 2010 或 2007,则此问题是由遗留的注册表项引起的.

Cause: This issue is caused by a left over registry key if you have downgraded your version of Microsoft Office from either Office 2010 to Office 2007, or Office 2013 to Office 2010 or 2007.

如果此解决方案对您没有帮助,请告诉我

Let me know if this solution is not helped to you