
VB.NET and Outlook automation - Detect Outlook Version
I'm writing an application that will (in part) enter information into a
retrieve information from Microsoft Outlook. The users of my application
will either have Outlook 2000 or Outlook XP. I know what I'm doing though
Outlook automation will work on either version... Since I have to
specifically reference a version of the Outlook object library and there's a
potential that the user will have either Outlook 2000 or Outlook XP and my
application can't know until it runs which is installed how is this handled?
Do I make a reference to both libraries and then determine which to use when
the app runs. Or, do I have to make two separate versions of my
application -- one for Outlook 2000 or one for Outlook XP.
I figure this has to be a fairly common issue for anyone writing
applications make use of MS Office automation. Just curious what the "best
practice" is in handling this situation...
Thanks in advance for any assistance you can provide.
TK Herman