The icon that I see.
I guess I have to create Form in Personal Forms Library. I tried
creating Form using the folowing code:
var
FormMgr: IMAPIFormMgr;
PersonalFormsLibrary : IMAPIFormContainer;
FormMgr.OpenFormContainer(HFRMREG_PERSONAL, nil,
PersonalFormsLibrary));
PersonalFormsLibrary.InstallForm(0, MAPI_DIALOG, CfgPathName));
where CfgPathName - path to the form's configuration file.
When I selected this form in Outlook when tring to create a message, I
got a Outlook warning that it was unable to display this form.
On 25 апр, 17:25, "Sue Mosher [MVP-Outlook]" <sue...@outlookcode.com>
wrote:
> The icon that you see or that recipients see? If the latter, internal recipients connecting to the same Exchange Server or external or non-Exchange recipients?
>
[quoted text clipped - 9 lines]
>
> - Показать цитируемый текст -
Did you actually create the form first in Outlook and save it as a .cfg file?
In Outlook 2007, a simpler solution for showing a specific icon is to use a replaceall form region manifest, as discussed at http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2199745&SiteID=1&mode=1 -- Raul's #1 manifest.

Signature
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54
The icon that I see.
I guess I have to create Form in Personal Forms Library. I tried
creating Form using the folowing code:
var
FormMgr: IMAPIFormMgr;
PersonalFormsLibrary : IMAPIFormContainer;
FormMgr.OpenFormContainer(HFRMREG_PERSONAL, nil,
PersonalFormsLibrary));
PersonalFormsLibrary.InstallForm(0, MAPI_DIALOG, CfgPathName));
where CfgPathName - path to the form's configuration file.
When I selected this form in Outlook when tring to create a message, I
got a Outlook warning that it was unable to display this form.
On 25 апр, 17:25, "Sue Mosher [MVP-Outlook]" <sue...@outlookcode.com>
wrote:
> The icon that you see or that recipients see? If the latter, internal recipients connecting to the same Exchange Server or external or non-Exchange recipients?
> <ban...@yandex.ru> wrote in messagenews:d20a55fd-f911-42e8-a16d-c7bbd892e910@27g2000hsf.googlegroups.com...
> > How to create custom form (Outlook 2007) using MAPI ?
> > I need custom form just for change mini icon for some message.- Скрыть цитируемый текст -
>
> - Показать цитируемый текст -
banato@yandex.ru - 25 Apr 2008 21:37 GMT
Thank you for your answer. BTW, I can't use Outlook 2007 specific form
region feature because I mean to install the add-in for Outlook 2003
and 2007.
I created .cfg file manually referring MSDN article. Is there another
"right" way to create and install custom form ?
Actually I have several e-mail addresses and certain icon for each of
them. My addin should to create custom form (if not exists) with
specific icon and then set message class to new one for each arrived
mail with specific e-mail address.
On 25 апр, 19:04, "Sue Mosher [MVP-Outlook]" <sue...@outlookcode.com>
wrote:
> Did you actually create the form first in Outlook and save it as a .cfg file?
>
[quoted text clipped - 37 lines]
>
> - Показать цитируемый текст -
Sue Mosher [MVP-Outlook] - 25 Apr 2008 22:49 GMT
Next time, please do not put Outlook 2007 in your subject line if you're building an add-in for both Outlook 2003 and 2007. That will avoid a lot of unnecessary detours.
The normal way to create a custom form is to use the form designer in Outlook, setting the icon on its (Properties) page. In add-in context, you can save it as an .oft file and distribute it as a resource. Use that file with the CreateItemFromTemplate to return a new item, then use that item's FormDescription.PublishForm command to publish to the user's Personal Forms library. Of course, Extended MAPI has its own ways -- and its own forums (not this one).
However, generally you should not use a custom form to create messages unless they are going only to recipients internal to the same Exchange organization. If you want to change the icon for the sender, change the MessageClass when the item reaches the Sent Items folder.

Signature
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54
Thank you for your answer. BTW, I can't use Outlook 2007 specific form
region feature because I mean to install the add-in for Outlook 2003
and 2007.
I created .cfg file manually referring MSDN article. Is there another
"right" way to create and install custom form ?
Actually I have several e-mail addresses and certain icon for each of
them. My addin should to create custom form (if not exists) with
specific icon and then set message class to new one for each arrived
mail with specific e-mail address.
On 25 апр, 19:04, "Sue Mosher [MVP-Outlook]" <sue...@outlookcode.com>
wrote:
> Did you actually create the form first in Outlook and save it as a .cfg file?
>
[quoted text clipped - 27 lines]
> > > How to create custom form (Outlook 2007) using MAPI ?
> > > I need custom form just for change mini icon for some message.
Ban - 26 Apr 2008 15:19 GMT
Please excuse me for wrong subject.
My add-in should create custom forms programmatically for each
specified sender. Theirs emails should have specefied icons in
messages list. I guess I can't manually create form templete for that
reasone.
On 26 апр, 00:49, "Sue Mosher [MVP-Outlook]" <sue...@outlookcode.com>
wrote:
> Next time, please do not put Outlook 2007 in your subject line if you're building an add-in for both Outlook 2003 and 2007. That will avoid a lot of unnecessary detours.
>
[quoted text clipped - 58 lines]
>
> - Показать цитируемый текст -
Sue Mosher [MVP-Outlook] - 26 Apr 2008 17:16 GMT
Unless you really want to use Extended MAPI for this (and we won't be able to help you with that in this forum), I'd try using the properties of the FormDescription object to add icons before publishing.
My earlier warning on using custom forms still applies.

Signature
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54
Please excuse me for wrong subject.
My add-in should create custom forms programmatically for each
specified sender. Theirs emails should have specefied icons in
messages list. I guess I can't manually create form templete for that
reasone.
On 26 апр, 00:49, "Sue Mosher [MVP-Outlook]" <sue...@outlookcode.com>
wrote:
> Next time, please do not put Outlook 2007 in your subject line if you're building an add-in for both Outlook 2003 and 2007. That will avoid a lot of unnecessary detours.
>
[quoted text clipped - 58 lines]
>
> - Показать цитируемый текст -
Ban - 26 Apr 2008 20:26 GMT
Thank you for your reply.
Is there a way to create/publish form using OOM ?
On 26 апр, 19:16, "Sue Mosher [MVP-Outlook]" <sue...@outlookcode.com>
wrote:
> Unless you really want to use Extended MAPI for this (and we won't be able to help you with that in this forum), I'd try using the properties of the FormDescription object to add icons before publishing.
>
[quoted text clipped - 80 lines]
>
> - Показать цитируемый текст -
Sue Mosher [MVP-Outlook] - 27 Apr 2008 14:56 GMT
Create, no. Publish, yes, using the FormDescription.PublishForm method as I already explained.

Signature
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54
Thank you for your reply.
Is there a way to create/publish form using OOM ?
On 26 апр, 19:16, "Sue Mosher [MVP-Outlook]" <sue...@outlookcode.com>
wrote:
> Unless you really want to use Extended MAPI for this (and we won't be able to help you with that in this forum), I'd try using the properties of the FormDescription object to add icons before publishing.
>
[quoted text clipped - 76 lines]
>
> - Показать цитируемый текст -