View Single Post
  #4  
Old October 15th 07, 09:31 PM posted to microsoft.public.outlook.program_addins,microsoft.public.developer.outlook.addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Alternate data source for folders/explorers (synthesizing mailitems)

You can't code for the preview pane and you can't code or change the InfoBar
where the status is displayed.

Explorers are for folder views, Inspectors are for open items. If you have
an item you can use item.GetInspector to get a handle to the Inspector for
the item. For an Explorer you can iterate the Explorers collection and check
for Explorer.CurrentFolder to see what it's displaying.

Sent items are different than unsent items in a number of properties that
mostly cannot be set in your code. So you can actually send the item and
then catch it and do whatever with it or you can create a Post item and
before ever saving it you can set many properties, then save it then change
the MessageClass from IPM.Post to IPM.Note. That helps within limits.

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


"freenews.netfront.net" wrote in message
...
Thanks, that works. After that, however, I run into problems because
they're unsent and don't have a sender list. Too bad for me that the
sender list is read-only. Reply, forward, etc, don't work. I'll have to
roll them myself, which means doing the body processing according to the
reply/forward options.

I also have to take over display in a number of places to get my items to
display reasonably. Unsent items have the message "this item hasn't been
sent yet" and don't have reply buttons. It looks like I can work around it
to some extent using a custom form, but I don't know yet how to deal with
Explorers, especially ones that aren't for my folder. The From field is of
course blank; I want to supply the data from a custom field. I don't know
if it's feasible to customize all views. And the preview pane is a
complete mystery - I don't know how it generates its view.

Thanks for helping a begginer!


Ads