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

The case of OnStartupComplete



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old January 14th 09, 11:42 AM posted to microsoft.public.outlook.program_addins
[email protected]
external usenet poster
 
Posts: 9
Default The case of OnStartupComplete

Hello,

I'm still struggling with my outlook addin.

I'm developing an add-in for multiple versions of Outlook.

It is build with VB.NET, using the Shared-Add-in project. I created it
using Microsoft Outlook 10.0 Object Library (Outlook 2002 aka 'Outlook
XP')

The OnConnection Event works fine.

The OnStartupComplete event works fine on Outlook XP but on Outlook
2007 it has this problem...if I include the line with the
ActiveExplorer variable the event never fires! :-(

What it can be?

Here is the portion of code:

Private _applicationObject As Object
Private _addInInstance As Object
Private _outApp As Outlook.Application
Private WithEvents _activeExplorerBars As
Microsoft.Office.Core.CommandBars

Public Sub OnStartupComplete(ByRef custom As System.Array) Implements
Extensibility.IDTExtensibility2.OnStartupComplete
Log("OnStartupComplete.Begin")
_outApp = DirectCast(_applicationObject, Outlook.Application)
Log("AppDetails." & _outApp.Name & " " & _outApp.ProductCode)
'_activeExplorerBars = _outApp.ActiveExplorer.CommandBars

_activeExplorerBars = Nothing 'REMOVING THIS LINE OF CODE
MAKES OnStartUpComplete To FIRE!


Log("OnStartupComplete.End")
End Sub
  #2  
Old January 14th 09, 02:07 PM posted to microsoft.public.outlook.program_addins
[email protected]
external usenet poster
 
Posts: 9
Default The case of OnStartupComplete

I found the problem!

By default the file Interop.Microsoft.Office.Core.dll was not included
in the release!

Once included it works fine.

On 14 Gen, 11:42, wrote:
Hello,

I'm still struggling with my outlook addin.

I'm developing an add-in for multiple versions of Outlook.

It is build with VB.NET, using the Shared-Add-in project. I created it
using Microsoft Outlook 10.0 Object Library (Outlook 2002 aka 'Outlook
XP')

The OnConnection Event works fine.

The OnStartupComplete event works fine on Outlook XP but on Outlook
2007 it has this problem...if I include the line with the
ActiveExplorer variable the event never fires! :-(

What it can be?

Here is the portion of code:

*Private _applicationObject As Object
*Private _addInInstance As Object
*Private _outApp As Outlook.Application
*Private WithEvents _activeExplorerBars As
Microsoft.Office.Core.CommandBars

*Public Sub OnStartupComplete(ByRef custom As System.Array) Implements
Extensibility.IDTExtensibility2.OnStartupComplete
* * * * Log("OnStartupComplete.Begin")
* * * * _outApp = DirectCast(_applicationObject, Outlook.Application)
* * * * Log("AppDetails." & _outApp.Name & " " & _outApp.ProductCode)
* * * * '_activeExplorerBars = _outApp.ActiveExplorer.CommandBars

* * * * _activeExplorerBars = Nothing 'REMOVING THIS LINE OF CODE
MAKES OnStartUpComplete To FIRE!

* * * * Log("OnStartupComplete.End")
* * End Sub


  #3  
Old January 14th 09, 04:12 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default The case of OnStartupComplete

You aren't deploying that are you? You should only be deploying your own
components, if the PIA's for Office/Outlook are needed they should be
installed from the redistributable packages from MS.

--
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
...
I found the problem!

By default the file Interop.Microsoft.Office.Core.dll was not included
in the release!

Once included it works fine.

On 14 Gen, 11:42, wrote:
Hello,

I'm still struggling with my outlook addin.

I'm developing an add-in for multiple versions of Outlook.

It is build with VB.NET, using the Shared-Add-in project. I created it
using Microsoft Outlook 10.0 Object Library (Outlook 2002 aka 'Outlook
XP')

The OnConnection Event works fine.

The OnStartupComplete event works fine on Outlook XP but on Outlook
2007 it has this problem...if I include the line with the
ActiveExplorer variable the event never fires! :-(

What it can be?

Here is the portion of code:

Private _applicationObject As Object
Private _addInInstance As Object
Private _outApp As Outlook.Application
Private WithEvents _activeExplorerBars As
Microsoft.Office.Core.CommandBars

Public Sub OnStartupComplete(ByRef custom As System.Array) Implements
Extensibility.IDTExtensibility2.OnStartupComplete
Log("OnStartupComplete.Begin")
_outApp = DirectCast(_applicationObject, Outlook.Application)
Log("AppDetails." & _outApp.Name & " " & _outApp.ProductCode)
'_activeExplorerBars = _outApp.ActiveExplorer.CommandBars

_activeExplorerBars = Nothing 'REMOVING THIS LINE OF CODE
MAKES OnStartUpComplete To FIRE!

Log("OnStartupComplete.End")
End Sub


 




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
OnStartupComplete() Yael Add-ins for Outlook 0 May 29th 07 01:37 PM
change case function Charlie Outlook and VBA 2 May 4th 07 07:18 AM
Outlook PST case tonrado Outlook - General Queries 5 February 22nd 06 05:28 PM
How to sychronize in this case: Josie Walsh Outlook - General Queries 2 February 4th 06 09:22 PM
How to sychronize in this case: Josie Walsh Outlook - Using Contacts 2 February 4th 06 09:22 PM


All times are GMT +1. The time now is 11:30 PM.


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.