Creating Form Regions with more than one page

  • Thread starter Thread starter escamoteur
  • Start date Start date
E

escamoteur

Hi,

I already customized Outlook inspectors with full custom form regions sucessfully.

What I don't know is how do I add a second page to it, like in an Contacts Inspector the "Details" page so that it can be selected
and displayed by the Ribbon->Display Group?

(Outlook 2007, COM-Addin, c#)

Best
Tom
 
Please clarify, do you want to add 2 separate form regions or learn how to
add 1? How are you adding form regions now?
 
If you take e.g. the standard Inspector for Contacts, you have a "General" and a "Details" page and you can switch between them by
the Ribbon.

I want something similiar.

I create my Formregion using GetFormRegionStorage. This works fine. I design the Formregion with Outlook Formdesigner.

I hope you knoe understand better what I mean.

Tom
 
For what you want you need a separate form region. That's what they're
called. You set that up in the form region XML. You can google for "Outlook
separate form region" and see examples for various platforms.
 
So far I use a Replace-All Formregion with the XML

<?xml version="1.0"?>
<FormRegion xmlns="http://schemas.microsoft.com/office/outlook/12/formregion.xsd">
<!-- Internal name -->
<name>BusinessOpportunity</name>
<!-- Display name -->
<title>Booking Opportunity</title>
<!-- Additive adjoining form region -->
<formRegionType>replaceAll</formRegionType>
<!-- Outlook form region file is in the current folder relative to the location of contoso.xml -->
<!--<layoutFile>c:\Entwicklung\ArtistsOrganizer\Booking.ofs</layoutFile>-->
<addin>OrganizerAddIn.Connect</addin>
<!-- Display form region when inspector is in the Reading Pane -->
<showPreview>false</showPreview>
<!-- Version of form region -->
<version>1.0</version>
</FormRegion>

Can I add a sparate form region to this?

Tom
 
What I don't understand is, GetFormRegionStorage can only return on .ofs File, how do I handle additional Separate Form regions for
the message class that all are displayed in one inspector?

Thanks Tom
 
I believe a replaceall region is not compatible with a separate region, but
I've never tried it. Try it and see.
 
According to Randy Byrne's book it's possible. unfortunately he does not tell how.
Tom
 
You can use one OFS per form region page or set up the regions using project
resources. When you get called for the form region storage or manifest you
supply
whatever is called for based on the form region name.
 
Not, that isn't clear from his book, I just checked. My guess is you'd use
different XML for each page and supply what's called for by name in the
GetFormRegionStorage callback, but that's just a guess. I haven't done all
that much with native form regions other than for my book.
 
I was also thinking in this direction.
Do you think I will then need a separate Class for every form region that I register in the XML

like:

FormRegion1.xml
<addin>OrganizerAddIn.Connect</addin>

FormRegion2.xml
<addin>OrganizerAddIn.Connect2</addin>

Best
Tom
 
No, I don't think so. I think it would work all in one class because the
names would be different and so you could handle callbacks from the
different pages that way.
 
Back
Top