![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
I Have two projects for 2003 and 2007 outlook.
Is it possible to create a single project which can work both for 2003 and 2007? 1. can I use shared addin project for this? 2. if not .. I want to detect which version of outlook user has at installation and run respective setup. how to do that ? from where i can get more information on conditional Setups? I had posted my question in Add-in-general section. Roady (MVP) sugested me to post this query here. he also mentioned both 1 and 2 is possible. If yes can any one give more details or Links where i can find more on this? Suggestions are highly appriciated. Thanks Neetu |
Ads |
#2
|
|||
|
|||
![]()
I almost never use separate projects, I almost always use just one.
You have to compile on a machine with the earliest version of Office/Outlook where the code should run. Any later methods or properties added to the object model can only be accessed using reflection (late binding). Otherwise the code will run as is on Outlook 2007 when compiled on Outlook 2003. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007. Reminder Manager, Extended Reminders, Attachment Options. http://www.slovaktech.com/products.htm "Neetu" wrote in message ... I Have two projects for 2003 and 2007 outlook. Is it possible to create a single project which can work both for 2003 and 2007? 1. can I use shared addin project for this? 2. if not .. I want to detect which version of outlook user has at installation and run respective setup. how to do that ? from where i can get more information on conditional Setups? I had posted my question in Add-in-general section. Roady (MVP) sugested me to post this query here. he also mentioned both 1 and 2 is possible. If yes can any one give more details or Links where i can find more on this? Suggestions are highly appriciated. Thanks Neetu |
#3
|
|||
|
|||
![]()
Thanks Ken,
so That I should use Shared Add-in project for creation of add-in 2003 and 2007 ofice.? I would also like to know more on how I can use conditional installation like a setup project which install either a word addin or outlook add-in , depending on user choice? "Ken Slovak - [MVP - Outlook]" wrote: I almost never use separate projects, I almost always use just one. You have to compile on a machine with the earliest version of Office/Outlook where the code should run. Any later methods or properties added to the object model can only be accessed using reflection (late binding). Otherwise the code will run as is on Outlook 2007 when compiled on Outlook 2003. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007. Reminder Manager, Extended Reminders, Attachment Options. http://www.slovaktech.com/products.htm "Neetu" wrote in message ... I Have two projects for 2003 and 2007 outlook. Is it possible to create a single project which can work both for 2003 and 2007? 1. can I use shared addin project for this? 2. if not .. I want to detect which version of outlook user has at installation and run respective setup. how to do that ? from where i can get more information on conditional Setups? I had posted my question in Add-in-general section. Roady (MVP) sugested me to post this query here. he also mentioned both 1 and 2 is possible. If yes can any one give more details or Links where i can find more on this? Suggestions are highly appriciated. Thanks Neetu |
#4
|
|||
|
|||
![]()
The addin type decision is up to you. A VSTO addin for Outlook 2003 will run
unchanged also in Outlook 2007 with no problems. The framework and shim loader technologies are different but you end up with the same result, a COM addin that's shimmed to load in its own AppDomain. I answered your installer question in the installation group, but it all really depends on the capabilities of whatever installer package you're using. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007. Reminder Manager, Extended Reminders, Attachment Options. http://www.slovaktech.com/products.htm "Neetu" wrote in message ... Thanks Ken, so That I should use Shared Add-in project for creation of add-in 2003 and 2007 ofice.? I would also like to know more on how I can use conditional installation like a setup project which install either a word addin or outlook add-in , depending on user choice? |
#5
|
|||
|
|||
![]()
Is it much of a mission then to downgrade from:
VSTO 2008 to VS2005 SE to get an Outlook 2007 Addin to work on Outlook 2003? I can think of one difference -- the ribbon. Apart from that is there a definative list anywhere that lists all the differences? ---- From http://www.microsoft.com/downloads/d...isplaylang=en: Overview This download (VSTOR30.exe) installs the Visual Studio Tools for the Office system 3.0 Runtime, which is required to run VSTO solutions for the 2007 Microsoft Office system built using Microsoft Visual Studio 2008. When installing the VSTO runtime on a non-English version of the operating system, you should also install the appropriate language pack to see the text of the messages from the VSTO runtime in that language, rather than English. Note: VSTO solutions built for use in Microsoft Office 2003 require the Visual Studio 2005 Tools for Office Second Edition Runtime, not this one. |
#6
|
|||
|
|||
![]()
To get the code to run on both versions the addin must be compiled on a
machine with Outlook 2003 installed. The Outlook 2007 help has a very useful what's new. Open the Outlook VBA project and click F1 to open the help. CommandBars code running on Outlook 2007 will be relegated to the AddIns tab in Inspector ribbons, Explorer UI will run correctly. The object model is vastly enhanced in Outlook 2007, in 2003 you have to use lower level API's to do things you can do in 2007, such as PropertyAccessor. See Andrew Whitechapel's blog posts (he's a member of the VSTO team) on supporting multiple versions in one addin: http://blogs.msdn.com/andreww/archiv...of-office.aspx http://blogs.msdn.com/andreww/archiv...hout-pias.aspx -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007. Reminder Manager, Extended Reminders, Attachment Options. http://www.slovaktech.com/products.htm "Mark B" wrote in message ... Is it much of a mission then to downgrade from: VSTO 2008 to VS2005 SE to get an Outlook 2007 Addin to work on Outlook 2003? I can think of one difference -- the ribbon. Apart from that is there a definative list anywhere that lists all the differences? ---- From http://www.microsoft.com/downloads/d...isplaylang=en: Overview This download (VSTOR30.exe) installs the Visual Studio Tools for the Office system 3.0 Runtime, which is required to run VSTO solutions for the 2007 Microsoft Office system built using Microsoft Visual Studio 2008. When installing the VSTO runtime on a non-English version of the operating system, you should also install the appropriate language pack to see the text of the messages from the VSTO runtime in that language, rather than English. Note: VSTO solutions built for use in Microsoft Office 2003 require the Visual Studio 2005 Tools for Office Second Edition Runtime, not this one. |
#7
|
|||
|
|||
![]()
Thanks Ken that's very helpful.
I wonder how many people 'out-there (e.g. the general population)' are still using Office 2003...? I wonder when a new version of Office will arrive... 2010? "Ken Slovak - [MVP - Outlook]" wrote in message ... To get the code to run on both versions the addin must be compiled on a machine with Outlook 2003 installed. The Outlook 2007 help has a very useful what's new. Open the Outlook VBA project and click F1 to open the help. CommandBars code running on Outlook 2007 will be relegated to the AddIns tab in Inspector ribbons, Explorer UI will run correctly. The object model is vastly enhanced in Outlook 2007, in 2003 you have to use lower level API's to do things you can do in 2007, such as PropertyAccessor. See Andrew Whitechapel's blog posts (he's a member of the VSTO team) on supporting multiple versions in one addin: http://blogs.msdn.com/andreww/archiv...of-office.aspx http://blogs.msdn.com/andreww/archiv...hout-pias.aspx -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007. Reminder Manager, Extended Reminders, Attachment Options. http://www.slovaktech.com/products.htm "Mark B" wrote in message ... Is it much of a mission then to downgrade from: VSTO 2008 to VS2005 SE to get an Outlook 2007 Addin to work on Outlook 2003? I can think of one difference -- the ribbon. Apart from that is there a definative list anywhere that lists all the differences? ---- From http://www.microsoft.com/downloads/d...isplaylang=en: Overview This download (VSTOR30.exe) installs the Visual Studio Tools for the Office system 3.0 Runtime, which is required to run VSTO solutions for the 2007 Microsoft Office system built using Microsoft Visual Studio 2008. When installing the VSTO runtime on a non-English version of the operating system, you should also install the appropriate language pack to see the text of the messages from the VSTO runtime in that language, rather than English. Note: VSTO solutions built for use in Microsoft Office 2003 require the Visual Studio 2005 Tools for Office Second Edition Runtime, not this one. |
#8
|
|||
|
|||
![]()
2010 is as good a guess as any.
My guess is that a heck of a lot more people are running Outlook 2003 than are running Outlook 2007 at this time, but that's a guess. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007. Reminder Manager, Extended Reminders, Attachment Options. http://www.slovaktech.com/products.htm "Mark B" wrote in message ... Thanks Ken that's very helpful. I wonder how many people 'out-there (e.g. the general population)' are still using Office 2003...? I wonder when a new version of Office will arrive... 2010? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Custom message in setup project | Nita Jadhav | Add-ins for Outlook | 1 | February 13th 09 03:07 PM |
Outlook 2003 working with Project Server 2007? | Mike Frenette[_2_] | Outlook - Installation | 0 | July 11th 08 07:35 PM |
email setup for outlook 2000, 2003,2007 | qbase7 | Outlook - Installation | 2 | April 22nd 08 01:17 AM |
dependencies not showing up in visual studio setup project | [email protected] | Add-ins for Outlook | 1 | October 26th 07 03:08 PM |
How to setup Outlook 2007 or 2003 to sync with Exchange 2003 | Chik | Outlook - General Queries | 5 | June 4th 07 01:03 PM |