msoutlook.org Forum Index
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Appointments and attachments, looking for suggestion on how

 
Post new topic   Reply to topic    msoutlook.org Forum Index -> Outlook Program VBA
Author Message
kneel



Joined: 11 Jan 2008
Posts: 4

PostPosted: Wed Feb 20, 2008 10:33 pm    Post subject: Appointments and attachments, looking for suggestion on how Reply with quote

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

Archived from group: microsoft>public>outlook>program_vba
Back to top
View user's profile Send private message
Ken Slovak - [MVP - Outlo



Joined: 12 Aug 2007
Posts: 405

PostPosted: Thu Feb 21, 2008 2:14 pm    Post subject: Re: Appointments and attachments, looking for suggestion on Reply with quote

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.

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


"kneel" wrote in message @microsoft.com...
> 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
>
>
Back to top
View user's profile Send private message
kneel



Joined: 11 Jan 2008
Posts: 4

PostPosted: Thu Feb 21, 2008 11:49 am    Post subject: Re: Appointments and attachments, looking for suggestion on Reply with quote

Thanks Ken... off to investigate this.. thanks for the guidance! Cheers Neil

"Ken Slovak - [MVP - Outlook]" wrote:


Back to top
View user's profile Send private message
Display posts from previous:   
Related Topics:
How to get appointments of another users and their names? Hi, I made a VBA code that picks up appointments from my Outlook (2003) calendar and writes them (date, time, subject, location, my user name) in columns of an html table. How could I get also appointments of my workmates and their names to the same table

Error when creating 247 appointments in exchange mailbox Hello, I try to create hundreds of appointments in the calendar with a link to a contact. This works without problems on pst stores. With exchange mailboxes it works too in OL 2003 but in 2002 on the 247th item the following error occurs: run time error -

Hi team, could anyone give me some suggestion about Auto-Fax Hi team, recently I need to find out a best solution for my customer. In this solution, they need to send\reciece fax via outlook 2003 client. Must I buy a fax software suit to meet this requirement? Can we easily deploy a outlook add-on or something to c

Outlook 2002 : Hyperlink - Suggestion for improvement Dear MS Software Developers, My post on this newsgroup entitled "Outlook 2002: How to keep the hyperlink file folder from changing " dated 9/4/2007 refers. So far I still have not receive a good solution to overcome this problem. In view of this I would

Printing Appointments Hello. I am familiar with VBA for Excel, but I don't know Outlook at all. I would like some help creating a macro. I want code to put in the Application Startup event that will print the daily view for the current day of a calendar called "Conf Room Pr
Post new topic   Reply to topic    msoutlook.org Forum Index -> Outlook Program VBA All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group