What to do when trying to open an Excel report and this type of error appears?
System.InvalidCastException - Version: 8.7.326.0mscorlibUnable to cast COM object of type 'Microsoft.Office.Interop.Excel.ApplicationClass' to interface type 'Microsoft.Office.Interop.Excel._Application'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{000208D5-0000-0000-C000-000000000046}' failed due to the following error: Error loading type library/DLL. (Exception from HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRARY)).at System.StubHelpers.StubHelpers.GetCOMIPFromRCW(Object objSrc, IntPtr pCPCMD, IntPtr& ppTarget, Boolean& pfNeedsRelease)at Microsoft.Office.Interop.Excel.ApplicationClass.set_DisplayAlerts(Boolean RHS)at AS.Cpm.Business.Client.Core.ReportGenerator.WorkbookLaunchComponent.ExecuteAction(WorkbookRef workbookRef, String localReportFileName, String caption, WorkbookOpenMode openMode, XmlKeyValueCollection actionParametersXml, String addinPathFileName)at AS.Cpm.Business.Client.Core.ReportGenerator.WorkbookLaunchComponent.OpenWorkbook(WorkbookRef workbookRef, WorkbookOpenMode openMode, XmlKeyValueCollection actionParametersXml)at ReportLauncher.App.OnStartup(StartupEventArgs e)
This is a problem related to Microsoft Office, so it is necessary to carry out a quick reset of the latter from the Control Panel, after closing the Excel files open on the device, by following the steps indicated in the following images:
Once the restoration is complete, the files should open correctly.
If the problem persists, please do not hesitate to contact support.
Comments
0 comments
Please sign in to leave a comment.