N
Natalie
Hello,
I get a type mismatch COM exception wenn I try to access some of the data in
Excel 2003.
While this code works fine:
Dim state As Excel.XlCalculationState
state = m_xlApp.CalculationState
Following code will cause a type mismatch exception:
Dim calc As Excel.XlCalculation
calc = m_xlApp.Calculation
The debugger shows following error (sorry, in German):
"Typkonflikt. (Ausnahme von HRESULT: 0x80020005 (DISP_E_TYPEMISMATCH))"
StackTrace"
Microsoft.Office.Interop.Excel.ApplicationClass.get_Calculation()"
I' m programming in VB.NET using Visual Studio 2005 with .NET 2.0.
My add-in is referencing the Excel PIA (Version 11) in the GAC.
I don't know if this detail is important: my add-in loads in MS-Project
2003, not Excel, and exports data from Project 2003 to Excel 2003.
Any help is greatly appreciated.
Natalie
I get a type mismatch COM exception wenn I try to access some of the data in
Excel 2003.
While this code works fine:
Dim state As Excel.XlCalculationState
state = m_xlApp.CalculationState
Following code will cause a type mismatch exception:
Dim calc As Excel.XlCalculation
calc = m_xlApp.Calculation
The debugger shows following error (sorry, in German):
"Typkonflikt. (Ausnahme von HRESULT: 0x80020005 (DISP_E_TYPEMISMATCH))"
StackTrace"
Microsoft.Office.Interop.Excel.ApplicationClass.get_Calculation()"
I' m programming in VB.NET using Visual Studio 2005 with .NET 2.0.
My add-in is referencing the Excel PIA (Version 11) in the GAC.
I don't know if this detail is important: my add-in loads in MS-Project
2003, not Excel, and exports data from Project 2003 to Excel 2003.
Any help is greatly appreciated.
Natalie