P
Paul DeMarco
There are articles on msdn that indicate the best way (performance and
compatability) to use office automation from out of process applications is
for late binding with DISPID caching, so that you do not have to call the
IDispatch::GetIDsOfNames and only IDispatch::Invoke. However, within .NET
using Type.InvokeMember does not do this, it uses both IDispatch methods.
So the question is, how do I perform DISPID caching (explicitly passing the
DISPID) instead of having .NET determine it on the fly, so that I may utilize
the preferred method of out-of-process automation?
compatability) to use office automation from out of process applications is
for late binding with DISPID caching, so that you do not have to call the
IDispatch::GetIDsOfNames and only IDispatch::Invoke. However, within .NET
using Type.InvokeMember does not do this, it uses both IDispatch methods.
So the question is, how do I perform DISPID caching (explicitly passing the
DISPID) instead of having .NET determine it on the fly, so that I may utilize
the preferred method of out-of-process automation?