Posting a form via addin problem

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

Simon Smith

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top