Excel Error

Hi all,

I have recently tried to use a TT toolbox component I have been using for years and now its giving me this error. I have done some investigation and it may have something to do with the new Excel and its registry. I was wondering if anyone else came across this issue and any solutions?

  1. Could not open excel. Try opening excel manually and running this component again.
  2. Error: System.InvalidCastException: Unable 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: Element not found. (Exception from HRESULT: 0x8002802B (TYPE_E_ELEMENTNOTFOUND)).
    at System.StubHelpers.StubHelpers.GetCOMIPFromRCW(Object objSrc, IntPtr pCPCMD, IntPtr& ppTarget, Boolean& pfNeedsRelease)
    at Microsoft.Office.Interop.Excel.ApplicationClass.set_Visible(Boolean RHS)
    at CORE.Library.Office.Excel.initNewVisible()
    at CORE.Grasshopper.Toolbox.writeToExcel.SolveInstance(IGH_DataAccess DA)

PancakeSpreadsheet can read/write Excels files without Excel.

2 Likes