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

Inspector.CurrentItem causes Shared Calendar Issue



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old April 3rd 09, 01:16 PM posted to microsoft.public.outlook.program_addins
dotnet_ottawa
external usenet poster
 
Posts: 1
Default Inspector.CurrentItem causes Shared Calendar Issue

I am having a problem with the Inspector.CurrentItem() method causing shared
calendar issues in Outlook 2003. The problem is as follows...

- user 1 and 2 share each others calendar
- user 1 creates a meeting request and sends it to user 2
- user 2 opens the meeting request, changes something [e.g. location] and
sends the update back to user 1
- user 1 sees the meeting request update on the calendar; however, when the
meeting request is opened, the OLD information is displayed, rather than the
updates

I have stripped out all add-in code and narrowed it down to the
Inspector.CurrentItem() method. This method call causes the problem, and
commenting it out makes the problem go away. I however need to test what type
of Outlook object is returned by the Inspector.CurrentItem

My stripped-down code is below.

Any ideas.


************************************************** ********
Option Explicit On
Option Strict On

Imports System
Imports Microsoft.Office.Core
Imports System.Runtime.InteropServices
Imports Microsoft.win32
Imports Microsoft.Office.Interop

GuidAttribute("213CA206-ADED-4C80-A8D6-C2B38E343234"),
ProgIdAttribute("MyAddin.Connect") _
Public Class Connect
Implements Extensibility.IDTExtensibility2

Private WithEvents inspectors As Outlook.Inspectors
Private applicationObject As Outlook.Application

Public Sub OnBeginShutdown(ByRef custom As System.Array) Implements
Extensibility.IDTExtensibility2.OnBeginShutdown
End Sub

Public Sub OnAddInsUpdate(ByRef custom As System.Array) Implements
Extensibility.IDTExtensibility2.OnAddInsUpdate
End Sub

Public Sub OnStartupComplete(ByRef custom As System.Array) Implements
Extensibility.IDTExtensibility2.OnStartupComplete
inspectors = Me.applicationObject.Inspectors
End Sub

Public Sub OnDisconnection(ByVal RemoveMode As
Extensibility.ext_DisconnectMode, ByRef custom As System.Array) Implements
Extensibility.IDTExtensibility2.OnDisconnection
End Sub

Public Sub OnConnection(ByVal application As Object, ByVal connectMode
As Extensibility.ext_ConnectMode, ByVal addInInst As Object, ByRef custom As
System.Array) Implements Extensibility.IDTExtensibility2.OnConnection
applicationObject = CType(application, Outlook.Application)

End Sub

Private Sub inspectors_NewInspector(ByVal Inspector As
Microsoft.Office.Interop.Outlook.Inspector) Handles inspectors.NewInspector
'this line causes the shared calendar problem
Dim mailItem As Outlook.MailItem = CType(Inspector.CurrentItem,
Outlook.MailItem)
End Sub

End Class
************************************************** ********


 




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
Shared calendar issue Sal F Outlook - Calandaring 0 October 26th 07 01:39 PM
How to set background image for ActiveInspector.CurrentItem? Burma Jones Outlook - Using Forms 1 February 20th 06 07:13 AM
How to set background image for ActiveInspector.CurrentItem? Burma Jones Outlook and VBA 1 February 20th 06 07:13 AM
Help! Inspector.Close is fired before Inspector.Activate handler finishes Sergey Anchipolevsky Add-ins for Outlook 8 February 9th 06 09:51 AM
Shared Calendar Timezone issue. Bucky767 Outlook - Calandaring 1 January 30th 06 07:40 PM


All times are GMT +1. The time now is 04:50 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.