Posting a form via addin problem

  • Thread starter Thread starter Simon Smith
  • Start date Start date
S

Simon Smith

Hi all -

I've got an add-in (in OL2K3) which creates items of a form type
descended from IPM.Post. I've set the default form in a folder to this
form on the folder's property pages, oth General and Forms tabs.

If I post to the folder manually, everything looks good. Opening the
item opens in the Read frame as expected. However, opening items
created via the add-in opens them in the Compose pane as though I were
replying. How can I stop it doing this?


Thanks -
 
On Sat, 13 Mar 2004 13:50:58 +0000 in article
<[email protected]> in
microsoft.public.outlook.program_addins , Simon Smith
Hi all -

I've got an add-in (in OL2K3) which creates items of a form type
descended from IPM.Post. I've set the default form in a folder to this
form on the folder's property pages, oth General and Forms tabs.

If I post to the folder manually, everything looks good. Opening the
item opens in the Read frame as expected. However, opening items
created via the add-in opens them in the Compose pane as though I were
replying. How can I stop it doing this?
For the record, the collowing code did it:

post.UnRead = false;
post.Post();
post.UnRead = true;
post.Close(OlInspectorClose.olSave);

where post is the PostItem in question. Previously I just had:

post.UnRead = true;
post.Post();
post.Close(OlInspectorClose.olSave);

Obviously (!) setting it to read on the original Post sets
PR_MESSAGE_FLAGS correctly. Marking it as unread after does only that.
 
Back
Top