Hi
I am not familar with SQL programming, based on my research, I did not find
that we have an official Primary Interop Assembly(PIA), do you mean the two
dll generated by the VS.NET IDE when you add a COM Reference to the two COM
library.
It is possible that the generated Interop Assembly may have some flaw which
will cause the problem. So far I think you may try to use the reflection to
do the latebinding, so that we do not need to do the type convert.
Here is a link about how to invokemember to do latebinding with COM Object.
303296 How To Use Automation to Get and to Set Office Document Properties
with
http://support.microsoft.com/?id=303296
Best regards,
Perter Huang
Microsoft Online Partner Support

Signature
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
Andreas Pircher - 11 Jan 2005 11:35 GMT
Thank you - I got it to work within 15 minutes - and I learned something.
kind regards,
Andreas Pircher, luxbox.net
> Hi
>
[quoted text clipped - 19 lines]
> Get Secure! - www.microsoft.com/security
> This posting is provided "AS IS" with no warranties, and confers no rights.
Andreas Pircher - 11 Jan 2005 11:41 GMT
And yes - I was talking about the VS generated dlls.
> Thank you - I got it to work within 15 minutes - and I learned something.
>
[quoted text clipped - 24 lines]
> > Get Secure! - www.microsoft.com/security
> > This posting is provided "AS IS" with no warranties, and confers no rights.
"Peter Huang" [MSFT] - 12 Jan 2005 05:55 GMT
Hi
Thanks for your quickly reply!
I am glad that my suggestion help you.
Best regards,
Perter Huang
Microsoft Online Partner Support

Signature
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.