C
Chet
I am writing an application that utilizes a reference to Microsoft
Outlook. (Added a reference to the MS Outlook COM interface to my
project). I then write code such as:
dim olApp as new Outlook.Applicaiton
dim olNamespace as OutlOok.Namespace = olApp.....
I am deploying my application via the "publish" feature that makes it
downloadable and installable via the web.
The problem I'm running into is that I need the application to work with
various versions of Outlook (2003 & 2007, currently), or to not
utilize outlook at all. I can write error handling codes inside the
program to check for what version they have installed, but am running
into two problems.
1. Compiling: I am developing the application on a computer with OL 2007
(v.12), and can therefore not add a reference for the OL 2003 (v.11) COM
reference. I tried copying the project to another computer with OL 2003
and adding the reference there, but then it complains about not having
OL 2007. I've thought about just using late binding ("dim olApp as
object = createobject("Outlook.Application")") but really don't want to
go that route if I can avoid it.
2. Deploying: If I do compile the program using OL 2007 references and
they try to deploy / install to a computer without Outlook or with
Outlook 2003, it will not install because it needs the office 12.0
libraries installed in the GAC beforehand.
Is there a workaround for these two issues to make my application not
quite so dependent upon the references to specific versions of outlook,
yet still be able to do early binding throughout my code?
Outlook. (Added a reference to the MS Outlook COM interface to my
project). I then write code such as:
dim olApp as new Outlook.Applicaiton
dim olNamespace as OutlOok.Namespace = olApp.....
I am deploying my application via the "publish" feature that makes it
downloadable and installable via the web.
The problem I'm running into is that I need the application to work with
various versions of Outlook (2003 & 2007, currently), or to not
utilize outlook at all. I can write error handling codes inside the
program to check for what version they have installed, but am running
into two problems.
1. Compiling: I am developing the application on a computer with OL 2007
(v.12), and can therefore not add a reference for the OL 2003 (v.11) COM
reference. I tried copying the project to another computer with OL 2003
and adding the reference there, but then it complains about not having
OL 2007. I've thought about just using late binding ("dim olApp as
object = createobject("Outlook.Application")") but really don't want to
go that route if I can avoid it.
2. Deploying: If I do compile the program using OL 2007 references and
they try to deploy / install to a computer without Outlook or with
Outlook 2003, it will not install because it needs the office 12.0
libraries installed in the GAC beforehand.
Is there a workaround for these two issues to make my application not
quite so dependent upon the references to specific versions of outlook,
yet still be able to do early binding throughout my code?