A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook - Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Tags: , , , ,

Create custom form in Outlook 2007





 
 
Thread Tools Display Modes
  #11  
Old April 27th 08, 02:56 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,596
Default Create custom form in Outlook 2007

Create, no. Publish, yes, using the FormDescription.PublishForm method as I already explained.

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

"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.- Скрыть цитируемый текст -


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


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


Ads
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
need help to create a custom reply form Fra Diavolo Outlook - Using Forms 0 April 10th 07 01:00 PM
Does anyone know how to create an Outlook Custom form to setup how meeting rooms are booked for clients? KingCronos Outlook - General Queries 0 March 1st 07 05:22 PM
Create a custom appointment form Theresa Smallwood Outlook - Using Forms 1 April 27th 06 09:14 PM
Is it possible to create and publish Outlook Custom Form through VBA ujwalabamishte@gmail.com Outlook - General Queries 3 March 10th 06 09:25 PM
Is it possible to create and publish Outlook Custom Form through VBA ujwalabamishte@gmail.com Outlook - General Queries 1 March 10th 06 02:51 PM


All times are GMT +1. The time now is 04:03 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright 2004-2008 Outlook Banter, part of the NewsgroupBanter project.
The comments are property of their posters.
Compare - Loans - Debt Loans - Debt Consolidation - Personal Finance