A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Create Add-in for multiple versions of Outlook



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old December 30th 08, 11:21 AM posted to microsoft.public.outlook.program_addins
[email protected]
external usenet poster
 
Posts: 9
Default Create Add-in for multiple versions of Outlook

Hello,

I'm creating an add-in for Outlook and I need it to work both with
Outlook XP (2002) and Outlook 2007.

I created it using Microsoft Outlook 10.0 Object Library (Outlook
2002) and it works fine on Outlook XP.

When I execute it on Outlook 2007 it works ok but the events don't
fire. For example I have this piece of code but the Startup event
doesn't fire in Outlook 2007:

Private Sub outAppStartup() Handles outApp.Startup
Log("ActiveExplorerCBars.0")
ActiveExplorerCBars = outApp.ActiveExplorer.CommandBars
Log("ActiveExplorerCBars.1")
End Sub

What can I check? Is there another method for creating add-in for
multiple Outlook versions?

Thank you very much and Happy New Year!

Ivan Pololi
Italy
Ads
  #2  
Old December 30th 08, 01:59 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Create Add-in for multiple versions of Outlook

You say it works OK, do you get the OnConnection() event?

What is supposed to trigger the outApp.Startup() event? What other events
don't fire?

How is this addin constructed? What language?

--
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


wrote in message
...
Hello,

I'm creating an add-in for Outlook and I need it to work both with
Outlook XP (2002) and Outlook 2007.

I created it using Microsoft Outlook 10.0 Object Library (Outlook
2002) and it works fine on Outlook XP.

When I execute it on Outlook 2007 it works ok but the events don't
fire. For example I have this piece of code but the Startup event
doesn't fire in Outlook 2007:

Private Sub outAppStartup() Handles outApp.Startup
Log("ActiveExplorerCBars.0")
ActiveExplorerCBars = outApp.ActiveExplorer.CommandBars
Log("ActiveExplorerCBars.1")
End Sub

What can I check? Is there another method for creating add-in for
multiple Outlook versions?

Thank you very much and Happy New Year!

Ivan Pololi
Italy


  #3  
Old December 30th 08, 02:23 PM posted to microsoft.public.outlook.program_addins
[email protected]
external usenet poster
 
Posts: 9
Default Create Add-in for multiple versions of Outlook

It is build with VB.NET, using the Shared-Add-in project.

The OnConnection Event works fine.

outApp.StartUp should fire on Outlook Application.Startup event.

Also OnUpdate on CommandBars doesn't start.

Thanx,
Ivan

On 30 Dic, 14:59, "Ken Slovak - [MVP - Outlook]"
wrote:
You say it works OK, do you get the OnConnection() event?

What is supposed to trigger the outApp.Startup() event? What other events
don't fire?

How is this addin constructed? What language?

--
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

wrote in message

...



Hello,


I'm creating an add-in for Outlook and I need it to work both with
Outlook XP (2002) and Outlook 2007.


I created it using Microsoft Outlook 10.0 Object Library (Outlook
2002) and it works fine on Outlook XP.


When I execute it on Outlook 2007 it works ok but the events don't
fire. For example I have this piece of code but the Startup event
doesn't fire in Outlook 2007:


Private Sub outAppStartup() Handles outApp.Startup
* * Log("ActiveExplorerCBars.0")
* * ActiveExplorerCBars = outApp.ActiveExplorer.CommandBars
* * Log("ActiveExplorerCBars.1")
End Sub


What can I check? Is there another method for creating add-in for
multiple Outlook versions?


Thank you very much and Happy New Year!


Ivan Pololi
Italy- Nascondi testo citato


- Mostra testo citato -


  #4  
Old December 30th 08, 02:58 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Create Add-in for multiple versions of Outlook

If you get OnConnection you shouldn't bother with Startup, which fires
before OnConnection anyway.

You also may not get a valid ActiveExplorer at that point, certainly not
with Startup. Use the OnStartupComplete event for trying to get
ActiveExplorer. If ActiveExplorer isn't valid then handling OnUpdate won't
work.

--
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


wrote in message
...
It is build with VB.NET, using the Shared-Add-in project.

The OnConnection Event works fine.

outApp.StartUp should fire on Outlook Application.Startup event.

Also OnUpdate on CommandBars doesn't start.

Thanx,
Ivan

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
add-ins for multiple Outlook versions Andrey Nikulin Add-ins for Outlook 5 August 8th 08 06:18 PM
What would be the best approach to support multiple versions ofOutlook? willemsch Outlook and VBA 3 February 5th 08 07:03 PM
Using forms across multiple versions of Outlook Lancaster John Outlook - Using Forms 1 October 19th 07 02:19 PM
I have a problem with multiple versions of contacts in Outlook TM Outlook - Using Contacts 2 June 4th 07 03:43 PM
Best sharing method for multiple versions Lizzie Outlook - Calandaring 1 May 14th 07 08:08 PM


All times are GMT +1. The time now is 09:15 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.