|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
References to different versions of MS Outlook in a VB.NET applicationOutlook. (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? On Nov 26, 8:30 am, Chet wrote:
Show quoteHide quote > I am writing an application that utilizes a reference to Microsoft A company I worked for had the exact same problem. The way they> 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? solved it for years was to compile the program on a machine with the older outlook on it since they are backwards compatible. They ended up solving it by writing a web service that would do all the e-mailing this way they didn't have to recompile for anything and the only computer that needed the outlook reference was the one with the web service.
Disecting Strings
Removing reference type members from a generic list clone vs2008 or not XML Deserializer problem Multithreading Invoke Workaround Integer array from vb to c function Convert code line to VB Bug in VWD 2008 Express? Editing an indexed PixelFormat Where are use scoped settings stored? |
|||||||||||||||||||||||