PC Review


Reply
Thread Tools Rate Thread

Create Add-in for multiple versions of Outlook

 
 
ivan.pololi@gmail.com
Guest
Posts: n/a
 
      30th Dec 2008
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
 
Reply With Quote
 
 
 
 
Ken Slovak - [MVP - Outlook]
Guest
Posts: n/a
 
      30th Dec 2008
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


<(E-Mail Removed)> wrote in message
news:62c58800-8953-47d7-b5e8-(E-Mail Removed)...
> 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


 
Reply With Quote
 
ivan.pololi@gmail.com
Guest
Posts: n/a
 
      30th Dec 2008
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]" <kenslo...@mvps.org>
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
>
> <ivan.pol...@gmail.com> wrote in message
>
> news:62c58800-8953-47d7-b5e8-(E-Mail Removed)...
>
>
>
> > 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 -


 
Reply With Quote
 
Ken Slovak - [MVP - Outlook]
Guest
Posts: n/a
 
      30th Dec 2008
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


<(E-Mail Removed)> wrote in message
news:0dfb49e0-e891-4668-a8fc-(E-Mail Removed)...
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

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple versions of outlook Kabs Microsoft Outlook Form Programming 3 8th Jan 2010 03:33 PM
add-ins for multiple Outlook versions Andrey Nikulin Microsoft Outlook Program Addins 5 8th Aug 2008 06:18 PM
Using formula to create multiple versions of a Graphs =?Utf-8?B?QmFycnlM?= Microsoft Excel Charting 6 29th Jul 2007 03:48 PM
Multiple Versions used to create presentation =?Utf-8?B?UGhhcm1E?= Microsoft Powerpoint 1 17th Oct 2005 11:10 PM
Multiple Versions used to create one presentation =?Utf-8?B?UGhhcm1E?= Microsoft Access Getting Started 1 17th Oct 2005 09:09 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:02 PM.