LastenboekLink en sommige Revit tools zijn sterk afhankelijk van Office. Bij problemen is het herstellen van Office een goede eerste actie. Open hiervoor het configuratiescherm en navigeer naar Configuratiescherm > Programma's > Programma's en onderdelen. Zoek naar "365" of de Office versie waarover u beschikt.

Klik het programma aan in de lijst, en klik op "wijzigen":

Doorloop de stappen:

Concreet is bovenstaande procedure de oplossing voor deze foutmelding bij het gebruik van de Revit Tool "Export schedules to Excel":

The following error has occurred while executing this
command:
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 Querylnterface 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.GetC OMIPFromRCW(Object objSrc,
IntPtr pCPCMD, IntPtr& ppTarget, Boolean& pfNeedsRelease)
at Microsoft.Office.Interop.Excel.ApplicationClass.set_Visible(Boolean
RHS)
at
GeolTDeurenstaat.Commands.ExportScheduleToExcelCommand.Execute...
commandData, String& message, ElementSet elements) in
D:\a\1\s\RevitModules\DeurenStaat\C ommands\ExportScheduleToE...:line
46
at BaseCommand.Execute(ExternalCommandData commandData,
String& message, ElementSet elements) in
D:\a\1\s\RevitModules\GeolTRevit\Infrastructure\BaseCommand.csiline
106