Appointments and attachments, looking for suggestion on how to pro

  • Thread starter Thread starter kneel
  • Start date Start date
K

kneel

Visual Studio 2005 + VTSO SE, WindowsXP, Office XP.

Wrote an addin that detaches any attachments to appointments, stores them in
another outlook folder and replaces the original attachment with a shortcut
pointing to the attachment. All works well.

Now the user decides to forward this invite onto someone else. I capture the
send via application.send event.. and I was going to reverse my process,
which is to remove the shortcut with the original document. My problem
appears to be that the forward process has changed my shortcuts item to an
'OLE' item, so that I can't even get the filenames anymore.
Looking for suggestions on how to proceed... Is there a way I can get the
'event' of forwarding.. and do my substitution before Outlook converts it? I
seem to only have limited events available to me ( itemsend, newmail,
newmailx etc)
Suggestions welcome.. and thanks in advance!
Neil
 
item.Forward is what you're looking for. If in an Explorer window you can
use ActiveExplorer.Selection to know what's selected. You use
ActiveExplorer.SelectionChange to know when the Selection has changed.
Iterate each member of the Selection collection and add a new item that
handles events for each Selection member. Put each item in a collection or
list to keep it alive and not garbage collected.

Then handle Inspectors.NewInspector to know when items are opened. Again,
instantiate an event handling item for each newly opened item and put that
in a collection to keep it alive.

There are examples of various wrapper classes and collections, such as
Inspector collections and Explorer collections at www.outlookcode.com, and
for Outlook 2007 at http://www.slovaktech.com/outlook_2007_templates.htm. At
Office online there are also examples in the sample addins for Outlook 2007.
 
Thanks Ken... off to investigate this.. thanks for the guidance! Cheers Neil

:
<snip of good advice>
 
Back
Top