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

How to add appointment’s non-sendable recipients programmatically?



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old March 30th 09, 04:54 AM posted to microsoft.public.outlook.program_addins
denis khodak
external usenet poster
 
Posts: 1
Default 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?
Ads
  #2  
Old March 30th 09, 05:03 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default 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?


  #3  
Old March 30th 09, 05:25 PM posted to microsoft.public.outlook.program_addins
denis khodak[_2_]
external usenet poster
 
Posts: 2
Default 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?



  #4  
Old March 30th 09, 07:27 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default 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.


  #5  
Old March 30th 09, 08:33 PM posted to microsoft.public.outlook.program_addins
denis khodak[_2_]
external usenet poster
 
Posts: 2
Default 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.



  #6  
Old January 20th 10, 01:18 PM posted to microsoft.public.outlook.program_addins
Toxter
external usenet poster
 
Posts: 1
Default 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
 




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
Changing CurrentUser Programmatically Alan Cuthbertson Outlook and VBA 2 July 14th 08 01:46 AM
How can I send emails to multiple recipients & how many Recipients Cusie Outlook - Using Contacts 2 November 2nd 07 11:07 PM
Programmatically enable Add-ins balaji chandan Add-ins for Outlook 11 July 18th 07 10:54 PM
How to programmatically enable a rule? PW Outlook and VBA 1 April 20th 07 07:17 AM
Closing Outlook Programmatically Michael Ryle Outlook and VBA 3 January 3rd 07 03:21 PM


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