Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Interop / October 2005

Tip: Looking for answers? Try searching our database.

Office 2003 interop question

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Kikoz - 28 Oct 2005 21:14 GMT
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,
Vlad.
Jim Meyer - 29 Oct 2005 09:36 GMT
Take a look at
http://www.codeproject.com/csharp/ZetaLateBindingComEvents.asp - it should
get you started.

Regards,
Jim

> Hi all.
>
[quoted text clipped - 24 lines]
> Thanks much,
> Vlad.
Vlad - 30 Oct 2005 06:08 GMT
Thanks, Jim!

> Take a look at
> http://www.codeproject.com/csharp/ZetaLateBindingComEvents.asp - it should
[quoted text clipped - 32 lines]
>> Thanks much,
>> Vlad.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.