Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Outlook - Using Forms (http://www.outlookbanter.com/outlook-using-forms/)
-   -   Create custom form in Outlook 2007 (http://www.outlookbanter.com/outlook-using-forms/70969-create-custom-form-outlook-2007-a.html)

[email protected] April 25th 08 03:10 PM

Create custom form in Outlook 2007
 
Hi

[email protected] April 25th 08 03:12 PM

Create custom form in Outlook 2007
 
How to create custom form (Outlook 2007) using MAPI ?
I need custom form just for change mini icon for some message.

Sue Mosher [MVP-Outlook] April 25th 08 03:25 PM

Create custom form in Outlook 2007
 
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?

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


wrote in message ...
How to create custom form (Outlook 2007) using MAPI ?
I need custom form just for change mini icon for some message.


[email protected] April 25th 08 04:02 PM

Create custom form in Outlook 2007
 
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]"
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?

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54



wrote in ...
How to create custom form (Outlook 2007) using MAPI ?
I need custom form just for change mini icon for some message.- -


- -



Sue Mosher [MVP-Outlook] April 25th 08 05:04 PM

Create custom form in Outlook 2007
 
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/Sho...iteID=1&mode=1 -- Raul's #1 manifest.

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


wrote in message ...
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]"
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?



wrote in ...
How to create custom form (Outlook 2007) using MAPI ?
I need custom form just for change mini icon for some message.- -


- -



[email protected] April 25th 08 09:37 PM

Create custom form in Outlook 2007
 
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]"
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=...-- Raul's #1 manifest.

--
Sue Mosher, Outlook MVP
* *Author of Microsoft Outlook 2007 Programming:
* * *Jumpstart for Power Users and Administrators
* *http://www.outlookcode.com/article.aspx?id=54

wrote in ...

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]"
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?


wrote in ...
How to create custom form (Outlook 2007) using MAPI ?
I need custom form just for change mini icon for some message.- óËÒÙÔØ ÃÉÔÉÒÕÅÍÙÊ ÔÅËÓÔ -


- ðÏËÁÚÁÔØ ÃÉÔÉÒÕÅÍÙÊ ÔÅËÓÔ -- Скрыть цитируемый текст -


- Показать цитируемый текст -



Sue Mosher [MVP-Outlook] April 25th 08 10:49 PM

Create custom form in Outlook 2007
 
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


wrote in message ...
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]"
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=....-- Raul's #1 manifest.

wrote in ...

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]"
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?


wrote in ...
How to create custom form (Outlook 2007) using MAPI ?
I need custom form just for change mini icon for some message.


Ban April 26th 08 03:19 PM

Create custom form in Outlook 2007
 
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]"
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.

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

wrote in ...

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]"
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=...Raul's #1 manifest.


wrote in ...


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]"
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?


wrote in ...
How to create custom form (Outlook 2007) using MAPI ?
I need custom form just for change mini icon for some message.- Скрыть цитируемый текст -


- Показать цитируемый текст -



Sue Mosher [MVP-Outlook] April 26th 08 05:16 PM

Create custom form in Outlook 2007
 
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.

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"Ban" wrote in message ...
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]"
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.

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

wrote in ...

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]"
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=....Raul's #1 manifest.


wrote in ...


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]"
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?


wrote in ...
How to create custom form (Outlook 2007) using MAPI ?
I need custom form just for change mini icon for some message.- Скрыть цитируемый текст -


- Показать цитируемый текст -



Ban April 26th 08 08:26 PM

Create custom form in Outlook 2007
 
Thank you for your reply.

Is there a way to create/publish form using OOM ?


On 26 апр, 19:16, "Sue Mosher [MVP-Outlook]"
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.

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

"Ban" wrote in ...

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]"
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.


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


wrote in ...


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]"
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.


wrote in ...


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]"
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?


wrote in ...
How to create custom form (Outlook 2007) using MAPI ?
I need custom form just for change mini icon for some message.- Скрыть цитируемый текст -


- Показать цитируемый текст -- Скрыть цитируемый текст -


- Показать цитируемый текст -




All times are GMT +1. The time now is 11:24 AM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright 2004-2006 OutlookBanter.com