R
RM
I am trying to obtain the list of AddIns and their fullnames from Excel. I
am using late binding. I would like to do something like:
objApp_AddIns = (object [])objApp_Late.GetType().InvokeMember( "AddIns",
BindingFlags.GetProperty, null, objApp_Late, null );
foreach (object objAddIn in objApp_AddIns)
{
object fullName = objAddIn.GetType().InvokeMember( "FullName",
BindingFlags.GetProperty, null, objAddIn, null );
}
This, however, throws a runtime exception on the cast.
Any ideas/suggestions on how I might do this differently. I cannot use any
of the Interops.
Thanks,
RM.
am using late binding. I would like to do something like:
objApp_AddIns = (object [])objApp_Late.GetType().InvokeMember( "AddIns",
BindingFlags.GetProperty, null, objApp_Late, null );
foreach (object objAddIn in objApp_AddIns)
{
object fullName = objAddIn.GetType().InvokeMember( "FullName",
BindingFlags.GetProperty, null, objAddIn, null );
}
This, however, throws a runtime exception on the cast.
Any ideas/suggestions on how I might do this differently. I cannot use any
of the Interops.
Thanks,
RM.