Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Add-ins for Outlook (http://www.outlookbanter.com/add-ins-outlook/)
-   -   How to add appointment’s non-sendable recipients programmatically? (http://www.outlookbanter.com/add-ins-outlook/88375-how-add-appointmenta-s-non.html)

denis khodak March 30th 09 03:54 AM

How to add appointment’s non-sendable recipients programmatically?
 
I’m trying to add non-sendable Outlook 2003 appointment attendees to the
active appointment compose window programmatically using properties
PidLidNonSendableTo (PSETID_Common 0x8536) and PidLidNonSendToTrackStatus
(PSETID_Common 0x8543).
The problem is that inspecotr does not display them immediately immediately.
If I close appointment and open it again I can see non-sendable recipients,
however I cannot make Outlook display them without closing inspector. I tried
adding/removing resipients, changing properties, calling Display() method,
but nothing seems to work. Is it possible to do?

Ken Slovak - [MVP - Outlook] March 30th 09 04:03 PM

How to add appointment’s non-sendable recipients programmatically?
 
What API are you using to add them? If it's not the Outlook object model
(obviously) then are you setting any properties from the object model after
saving your changes that might fake Outlook into thinking something has
changed on the item? One such trick is setting item.Subject to itself and
then calling the item.Save() method.

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


"denis khodak" denis wrote in message
...
I’m trying to add non-sendable Outlook 2003 appointment attendees to the
active appointment compose window programmatically using properties
PidLidNonSendableTo (PSETID_Common 0x8536) and PidLidNonSendToTrackStatus
(PSETID_Common 0x8543).
The problem is that inspecotr does not display them immediately
immediately.
If I close appointment and open it again I can see non-sendable
recipients,
however I cannot make Outlook display them without closing inspector. I
tried
adding/removing resipients, changing properties, calling Display() method,
but nothing seems to work. Is it possible to do?



denis khodak[_2_] March 30th 09 04:25 PM

How to add appointment’s non-sendable recipients programmatica
 
Thanks for reply! In Outlook 2003 and 2007 I tried Extended MAPI and in 2007
tried new PropertyAccessor API, neither of them work.
Unfortunately item.Subject = item.Subject and calling Save() method didn’t
help either.


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

What API are you using to add them? If it's not the Outlook object model
(obviously) then are you setting any properties from the object model after
saving your changes that might fake Outlook into thinking something has
changed on the item? One such trick is setting item.Subject to itself and
then calling the item.Save() method.

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


"denis khodak" denis wrote in message
...
I’m trying to add non-sendable Outlook 2003 appointment attendees to the
active appointment compose window programmatically using properties
PidLidNonSendableTo (PSETID_Common 0x8536) and PidLidNonSendToTrackStatus
(PSETID_Common 0x8543).
The problem is that inspecotr does not display them immediately
immediately.
If I close appointment and open it again I can see non-sendable
recipients,
however I cannot make Outlook display them without closing inspector. I
tried
adding/removing resipients, changing properties, calling Display() method,
but nothing seems to work. Is it possible to do?




Ken Slovak - [MVP - Outlook] March 30th 09 06:27 PM

How to add appointment’s non-sendable recipients programmatica
 
Then close and re-open is the only way I know of to update the display.

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


"denis khodak" wrote in message
...
Thanks for reply! In Outlook 2003 and 2007 I tried Extended MAPI and in
2007
tried new PropertyAccessor API, neither of them work.
Unfortunately item.Subject = item.Subject and calling Save() method didn’t
help either.



denis khodak[_2_] March 30th 09 07:33 PM

How to add appointment’s non-sendable recipients programmatica
 
Close/re-open works, the only downside is that user experience is far from
ideal :( Thanks again!

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

Then close and re-open is the only way I know of to update the display.

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


"denis khodak" wrote in message
...
Thanks for reply! In Outlook 2003 and 2007 I tried Extended MAPI and in
2007
tried new PropertyAccessor API, neither of them work.
Unfortunately item.Subject = item.Subject and calling Save() method didn’t
help either.




Toxter January 20th 10 12:18 PM

How to add appointment�s non
 
Hi Denis,

Can you please post a source code sample where you add non-sendable using Outlook 2007 PropertyAccessor.
I'm having similar problem and can't add recipient (even after Save and reopen of Inspector).

Thank you..
Submitted using http://www.outlookforums.com


All times are GMT +1. The time now is 12:28 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-2006 OutlookBanter.com