<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>blog.dennus.net &#187; VSTO</title>
	<atom:link href="http://blog.dennus.net/category/development/vsto/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.dennus.net</link>
	<description>A reflection on Microsoft Office SharePoint Server 2007 (and other stuff...)</description>
	<lastBuildDate>Tue, 20 Jul 2010 09:28:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Making a custom Outlook ribbon group appear in another inspector &#8211; bugged?</title>
		<link>http://blog.dennus.net/2009/11/17/making-a-custom-outlook-ribbon-group-appear-in-another-inspector-bugged/</link>
		<comments>http://blog.dennus.net/2009/11/17/making-a-custom-outlook-ribbon-group-appear-in-another-inspector-bugged/#comments</comments>
		<pubDate>Tue, 17 Nov 2009 15:30:30 +0000</pubDate>
		<dc:creator>Dennis Meenhuis</dc:creator>
				<category><![CDATA[VSTO]]></category>

		<guid isPermaLink="false">http://blog.dennus.net/?p=20</guid>
		<description><![CDATA[For a small assignment for a client, I've created this custom ribbon for Outlook, which holds a new group with a couple of custom controls relevant for a new mail message. They'd like to add a couple of extra MIME headers if any of the recipients is outside their domain. So far, this was relatively [...]]]></description>
			<content:encoded><![CDATA[<p>For a small assignment for a client, I've created this custom ribbon for Outlook, which holds a new group with a couple of custom controls relevant for a new mail message. They'd like to add a couple of extra MIME headers if any of the recipients is outside their domain. So far, this was relatively easy to do (still, I find the documentation about Outlook and VSTO a bit scarce, required quite the amount of Googling). However, since meeting requests can also have external recipients, the custom ribbon group should appear there as well.</p>
<p>Luckily, I found a blog post on a very good blog which explains how to do this. The post can be found <a href="http://blogs.msdn.com/vsto/archive/2008/04/09/making-a-custom-group-appear-in-the-message-tab-a-mail-item-norm-estabrook.aspx" target="_blank">here</a>.</p>
<p>So, I've followed the instructions there, created an event handler for the New Inspector event and built in a check to see if the new item is an meeting item. If so, set the OfficeId to "NewAppointment".</p>
<p>This generally seems to work, except when you open new items in a specific order. Then all of a sudden the custom group doesn't show up in the new meeting form anymore.</p>
<p>Following these steps seems to work just fine:</p>
<ul>
<li>Debug the application</li>
<li>Compose a new meeting (the custom group appears)</li>
<li>Compose a new mail message (the custom group appears)</li>
<li>Compose a new meeting item again (the custom group appears)</li>
</ul>
<p>However, when I change the steps to the following, the custom group doesn't appear anymore in a new meeting:</p>
<ul>
<li>Debug the application</li>
<li>Compose a new mail message (the custom group appears)</li>
<li>Compose a new meeting item (<strong>now all of a sudden the group doesn't show up anymore!</strong>)</li>
</ul>
<p>I can't really find out why it doesn't work. When adding a breakpoint to the Load event of the Ribbon, I did found out that for some reason the Load event doesn't fire anymore for a meeting in scenario #2. It works just fine if I follow the procedure in scenario #1 however.</p>
<p>The way I've currently solved it is by creating a duplicate of the ribbon and setting the OfficeId to "NewAppointment". Obviously, this doesn't deserve any prizes for elegance, but for now it does the trick...</p>
<p>I'll be sure to write an update to this post should I find out how to deal with this weird issue.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.dennus.net/2009/11/17/making-a-custom-outlook-ribbon-group-appear-in-another-inspector-bugged/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
