B
banato
Hi
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 MessageClasswhen the item reaches the Sent Items folder.
--
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.
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 athttp://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2199745&SiteID=...Raul's #1 manifest.<[email protected]> wrote in messagenews:ddaf9e38-371e-4d1c-b682-899f1fea31d7@x41g2000hsb.googlegroups.com...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]" <[email protected]>
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?
How to create custom form (Outlook 2007) using MAPI ?
I need custom form just for change mini icon for some message.- Скрыть цитируемый текÑÑ‚ -
- Показать цитируемый текÑÑ‚ -
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.
--
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.
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 athttp://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2199745&SiteID=....Raul's #1 manifest.<[email protected]> wrote in messagenews:ddaf9e38-371e-4d1c-b682-899f1fea31d7@x41g2000hsb.googlegroups..com...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]" <[email protected]>
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?
How to create custom form (Outlook 2007) using MAPI ?
I need custom form just for change mini icon for some message.- Скрыть цитируемый текÑÑ‚ -
- Показать цитируемый текÑÑ‚ -
Unless you really want to use Extended MAPI for this (and we won't be ableto 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.
--
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.
Next time, please do not put Outlook 2007 in your subject line if you'rebuilding an add-in for both Outlook 2003 and 2007. That will avoid a lot ofunnecessary 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 cansave it as an .oft file and distribute it as a resource. Use that file withthe 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.--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54<[email protected]> wrote in messagenews:ed9926fa-4e45-4c4a-b3f1-a601bd350f95@y38g2000hsy.googlegroups.com...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]" <[email protected]>
wrote: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 athttp://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2199745&SiteID=...#1 manifest.
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]" <[email protected]>
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?
How to create custom form (Outlook 2007) using MAPI ?
I need custom form just for change mini icon for some message.- Скрыть цитируемый текÑÑ‚ -- Показать цитируемый текÑÑ‚ -- Скрыть цитируемый текÑÑ‚ -
- Показать цитируемый текÑÑ‚ -
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.
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.
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.--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54<[email protected]> wrote in messagenews:ed9926fa-4e45-4c4a-b3f1-a601bd350f95@y38g2000hsy.googlegroups..com...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]" <[email protected]>
wrote: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 athttp://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2199745&SiteID=....#1 manifest.
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]" <[email protected]>
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?
How to create custom form (Outlook 2007) using MAPI ?
I need custom form just for change mini icon for some message.- Скрыть цитируемый текÑÑ‚ -- Показать цитируемый текÑÑ‚ -- Скрыть цитируемый текÑÑ‚ -
- Показать цитируемый текÑÑ‚ -
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.