FormRegion setup question

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I use FormRegions in my COM AddIn. The FormRegions are saved to *.ofs files.
To which folder should they be installed, that Outlook recognize them?

Thanks
Christian
 
It can be any folder. Specify the location in the region's manifest. You can also load them as resources.
 
Hi Sue,

thanks for your help!
Can you please send me an sample how it have to look in the manifestfile?

Thanks Christian
 
Sorry, I missed the part about it being an add-in. (D'oh! I should have checked the newsgroup name.) If you were not using an add-in, you'd specify the path in the the <layoutFile> element:

<layoutFile>%ProgramFiles%\Addin\Addin.ofs</layoutFile>

In an add-in, though, you load the .ofs file in the GetFormRegionStorage event handler, usually from a resource that's part of your add-in project. See http://blogs.msdn.com/andreww/archive/2006/11/24/getformregionicon-and-getformregionmanifest.aspx
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54
 
Following you find my manifest file:

<?xml version="1.0" encoding="utf-8"?>
<FormRegion
xmlns="http://schemas.microsoft.com/office/12/outlook/formregion.xsd">
<name>MyFormRegionsName</name>
<formRegionName>Fine FormRegion</formRegionName>
<formRegionType>adjoining</formRegionType>
<title></title>
<showInspectorRead>true</showInspectorRead>
<showReadingPane>true</showReadingPane>
<showInspectorCompose>false</showInspectorCompose>
<addin>MyAddIn.Connect</addin>
</FormRegion>
 
Back
Top