Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming Add-Ins / December 2007

Tip: Looking for answers? Try searching our database.

modify contact when chages are not made to form region

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
sd - 19 Dec 2007 14:31 GMT
hello
I've shown separate Form region to contact form(not adjoining) through
VSTO addin.My Wrapper class for this form region is instantiated when
I navigate to that form region page.I make a copy of contact to other
folder in wrapper class code when user save & close it . The problem
is  for  existing contact. when user make changes to General page ,
Save  & Close the contact  without navigating to my Form region page ,
the copy doesn't get modified (since wrapper class doesn't
instantiated).How to reflect  changes to copy of contact
when user save & closes contact without navigating to my form region
page?

thanks in advance
Ken Slovak - [MVP - Outlook] - 19 Dec 2007 20:30 GMT
Have your addin implements a handler for item.Write() so you can trap that
condition. You may also need to handle item.Close().

Signature

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

> hello
> I've shown separate Form region to contact form(not adjoining) through
[quoted text clipped - 9 lines]
>
> thanks in advance
sd - 21 Dec 2007 13:26 GMT
thanks ken
I implemented Item_write in addin.But if the user opens multiple
inspector windows then
do I've to take multiple Contactobjects?
thanks again
> Have your addin implements a handler for item.Write() so you can trap that
> condition. You may also need to handle item.Close().
[quoted text clipped - 20 lines]
>
> - Show quoted text -
Ken Slovak - [MVP - Outlook] - 21 Dec 2007 14:20 GMT
The way to handle multiple open Inspectors (or multiple open Explorers) is
with a wrapper class and collection of wrapper classes. Each class handles
events for its own Inspector and therefore doesn't interfere with handling
any other Inspector.

I have sample VS2005 projects for shared and VSTO addins for Outlook 2007
posted on my Web site that implement Inspector and Explorer wrappers. The
samples are available in both C# and VB.NET and would give you an idea of
how to handle things like that. You can check them out at
http://www.slovaktech.com/outlook_2007_templates.htm if you want.

Signature

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

thanks ken
I implemented Item_write in addin.But if the user opens multiple
inspector windows then
do I've to take multiple Contactobjects?
thanks again
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.