all groups > dotnet interop > october 2005 >
You're in the

dotnet interop

group:

Office 2003 interop question


Office 2003 interop question Kikoz
10/28/2005 1:14:28 PM
dotnet interop:
Hi all.

I got small app. One of its functions is supposed to interact with user's
Office 2003 (don't care about earlier versions). This functionality works
just fine on dev machines if I reference PIA's in VS.2003. But I have no idea
if the end user will have Office 2003 installed (and if he enabled its .NET
programmability during installation). I can, of course, include
Interop.Outlook.dll and stuff in my setup project and register it in user's
GAC, but first those dlls are very large for my small app (app is 100kb and
Interop.Outlook alone is about 400 kb) and second if my setup will manage to
register my Interop.Outlook in user's GAC then his Office will stop working.
So, my only choice here is to use late binding with some checking if all
types are loaded. If not, then user doesn't have Office 2003 and app will
simply disable its Office functionality. Right?

The question: I tried to late bind to Outlook.Application but can't figure
out how. Can anyone have any articles how to get proper references to Office
2003 types?

Thanks much,
Re: Office 2003 interop question Jim Meyer
10/29/2005 10:36:48 AM
Take a look at
http://www.codeproject.com/csharp/ZetaLateBindingComEvents.asp - it should
get you started.

Regards,
Jim


[quoted text, click to view]

Re: Office 2003 interop question Vlad
10/30/2005 1:08:21 AM
Thanks, Jim!


[quoted text, click to view]

AddThis Social Bookmark Button