<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Demand-Loading VSTO Add-ins</title><link>http://blogs.msdn.com/b/andreww/archive/2008/07/14/demand-loading-vsto-add-ins.aspx</link><description>In an earlier post , I talked about how you could delay (or prevent) the loading of managed code using a native add-in. In that post I also listed the standard LoadBehavior settings, and I was assuming that everyone knows how these apply, but I got a</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Demand-Loading VSTO Add-ins</title><link>http://blogs.msdn.com/b/andreww/archive/2008/07/14/demand-loading-vsto-add-ins.aspx#9854057</link><pubDate>Fri, 31 Jul 2009 07:27:49 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9854057</guid><dc:creator>wordyone</dc:creator><description>&lt;p&gt;Andrew, Thank you again much for your timely response. This is the information we needed to get some critical issues with a customer's build resolved.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9854057" width="1" height="1"&gt;</description></item><item><title>re: Demand-Loading VSTO Add-ins</title><link>http://blogs.msdn.com/b/andreww/archive/2008/07/14/demand-loading-vsto-add-ins.aspx#9853924</link><pubDate>Fri, 31 Jul 2009 04:22:27 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9853924</guid><dc:creator>andreww</dc:creator><description>&lt;p&gt;wordyone - There's a separate cache file for the XML and icon images from DemandLoad add-ins. These files are located at:&lt;/p&gt;
&lt;p&gt;C:\Users\[user]\AppData\Local\Microsoft\Office\*.customui&lt;/p&gt;
&lt;p&gt;They are named Word12.customui, Excel12.customui, etc.&lt;/p&gt;
&lt;p&gt;The cache is a zip file, but it is not editable by users. &amp;nbsp;If you want to get back to a blank slate, the best option is to delete all the cache files and reset all the add-ins back to LoadBehavior = 3 or 16.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9853924" width="1" height="1"&gt;</description></item><item><title>re: Demand-Loading VSTO Add-ins</title><link>http://blogs.msdn.com/b/andreww/archive/2008/07/14/demand-loading-vsto-add-ins.aspx#9853886</link><pubDate>Fri, 31 Jul 2009 03:11:33 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9853886</guid><dc:creator>andreww</dc:creator><description>&lt;p&gt;chris.snyder - no, unfortunately there are no events fired when a custom ribbon is displayed. You could approach this from the other side: that is, you decide which buttons to display and then force a refresh of the control or ribbon with IRibbonUI.Invalidate/InvalidateControl.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9853886" width="1" height="1"&gt;</description></item><item><title>re: Demand-Loading VSTO Add-ins - old ribbon persists for my add-in</title><link>http://blogs.msdn.com/b/andreww/archive/2008/07/14/demand-loading-vsto-add-ins.aspx#9853730</link><pubDate>Thu, 30 Jul 2009 23:55:11 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9853730</guid><dc:creator>wordyone</dc:creator><description>&lt;p&gt;Hi Andrew, &lt;/p&gt;
&lt;p&gt;I removed Normal.dotm but the earlier ribbon settings remain in Word's &amp;quot;past memory of my add-in&amp;quot; somewhere. To reproduce this, you install your Word 2007 VSTO SE 2005 add-in with the LoadBehavior set to 3. You then modify your add-in's ribbon so it will be pretty obvious which version of the ribbon you are seeing (the v1-original one or v2-the changed one). You then change your add-in to install with LoadBehavior 16. You uninstall the old one and reinstall the new one, and after you do this, your add-in's original ribbon (v1) appears when Word launches. If you go to the registry and flip the reg key to 3, the modified version of the ribbon (v2) appears. Could you please shed some light on where it is caching this old version of the ribbon for my add-in? &amp;nbsp;I have tried removing Normal.dotm, as well as deleting the Data registry key.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9853730" width="1" height="1"&gt;</description></item><item><title>re: Demand-Loading VSTO Add-ins</title><link>http://blogs.msdn.com/b/andreww/archive/2008/07/14/demand-loading-vsto-add-ins.aspx#9847908</link><pubDate>Sat, 25 Jul 2009 00:35:55 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9847908</guid><dc:creator>chris.snider</dc:creator><description>&lt;p&gt;Is there any events that we can hook for the display of the custom ribbon? &amp;nbsp;I want to be able to delay load my Powerpoint add-in using the LoadBehavior 16/9. &amp;nbsp;However, I have some custom processing required to determine if buttons should be displayed or not. &amp;nbsp;Currently, I have not been able to find any events for the Ribbon display/Onvisible/VisibleChanged etc to trap.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Chris&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9847908" width="1" height="1"&gt;</description></item><item><title>re: Demand-Loading VSTO Add-ins</title><link>http://blogs.msdn.com/b/andreww/archive/2008/07/14/demand-loading-vsto-add-ins.aspx#9846668</link><pubDate>Thu, 23 Jul 2009 21:29:38 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9846668</guid><dc:creator>wordyone</dc:creator><description>&lt;p&gt;Hi Andrew. Thanks for the quick response on that. A few follow-up questions on this topic, and then I think I will really get it!&lt;/p&gt;
&lt;p&gt;In testing this, I modified a Word 2007 VST0 2005 SE Add-in to use Load Behavior 16. On launch Word, it loads my add-in and caches the ribbon, etc. so it takes longer for Word to start up this first time. After the initial startup, the reg key changes to 9 for the delayed load scenario. The Load Behavior key doesn’t change to 8 until the user clicks a button, as described in the article. Am I doing something wrong, or is the reg key of 8 no longer in effect?&lt;/p&gt;
&lt;p&gt;Lastly, and more importantly, when testing with delayed load I find something odd. The first time Word starts, it takes longer because my add-in fully loads (which is expected). Then the reg key changes to 9, and Word startup time is shortened on subsequent launches. However, after I reboot the machine, Word seems to take the original amount of time to start again (same as if my add-in were fully loading). Even though the reg key for my add-in is still 9 and delayed load scenario in place. Is there something else coming in to play that can explain the longer load times following reboot?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9846668" width="1" height="1"&gt;</description></item><item><title>re: Demand-Loading VSTO Add-ins</title><link>http://blogs.msdn.com/b/andreww/archive/2008/07/14/demand-loading-vsto-add-ins.aspx#9804171</link><pubDate>Thu, 25 Jun 2009 23:00:49 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9804171</guid><dc:creator>andreww</dc:creator><description>&lt;p&gt;wordyone - to delete Ribbon/CommandBar custom icons, you can simply delete the toolbar cache files. You should take a backup of these files first, and note that these will delete other custom settings (for example, Word's normal.dot contains style customizations etc in addition to Ribbon/CommandBar icons).&lt;/p&gt;
&lt;p&gt;Excel: 		C:\Documents and Settings\&amp;lt;user&amp;gt;\Application Data\Microsoft\Excel\Excel12.xlb (or Excel11.xlb)&lt;/p&gt;
&lt;p&gt;Word: 		C:\Documents and Settings\&amp;lt;user&amp;gt;\Application Data\Microsoft\Templates\Normal.dot(m)&lt;/p&gt;
&lt;p&gt;Outlook: 	C:\Documents and Settings\&amp;lt;user&amp;gt;\Application Data\Microsoft\Outlook\outcmd.dat&lt;/p&gt;
&lt;p&gt;PowerPoint: 	C:\Documents and Settings\&amp;lt;user&amp;gt;\Application Data\Microsoft\Powerpoint\ppt.pcb&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9804171" width="1" height="1"&gt;</description></item><item><title>re: Demand-Loading VSTO Add-ins</title><link>http://blogs.msdn.com/b/andreww/archive/2008/07/14/demand-loading-vsto-add-ins.aspx#9804108</link><pubDate>Thu, 25 Jun 2009 22:17:12 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9804108</guid><dc:creator>wordyone</dc:creator><description>&lt;p&gt;Thank you for this very informative article as well as the follow-up article. Could you please tell me where the ribbon is cached and how to reset this cache once it has been established? &lt;/p&gt;
&lt;p&gt;I have found that once the add-in's ribbon has been cached, if something later changes -- such as the default label or text in a combobox (populated using getText or getLabel callback) -- the &amp;quot;bad&amp;quot; ribbon values persist. I would like to reset the cache somehow because resetting load behavior of my add-in to 16 again does not seem to overwrite the original ribbon that was cached.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9804108" width="1" height="1"&gt;</description></item></channel></rss>