View Single Post
  #2  
Old July 26th 06, 01:21 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Modify the message form for reading in OL2007

Replace can be used only on custom message classes, e.g. IPM.Note.MyMessageClass, so you'd need to add another piece to your project -- code to change the value of the MessageClass property for these messages.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Lee" wrote in message ...
Basically I want to modify the mail mesage to display an additional label
below the subject, when opened for reading.
Adjoining form region type would be added below, which is not desirable. And
using separate form region type will reduce usabilty.I want to position the
label inside the form.

From technical artical on MSDN, I got
"You can register the form region as a replacement form region: If you
specify a value of Replace for the formRegionType tag in the form region
manifest XML file, the form region will replace the default page of the form.
If you specify a value of ReplaceAll for the formRegionType tag, the form
region will replace the entire form, resulting in a new form for a derived
message class."

According to this, I will have to replace the default page with my custom
page.
But when I try using this Replace value inside the formregiontype it says
"could not render the formregion" and adds a Report redering problems tab to
the mail message read window. Has anyone used Replace with formregiontype?

I dont find any sample application demonstrating this either. Thanks in
advance for any kind of help.

Ads