<?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>Kevin Boske - VSTA : ActiveX</title><link>http://blogs.msdn.com/kevinboske/archive/tags/ActiveX/default.aspx</link><description>Tags: ActiveX</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>The ActiveX in Office Open XML Compendium - Part 1 Persistence</title><link>http://blogs.msdn.com/kevinboske/archive/2006/10/17/the-activex-in-open-xml-compendium-part-1-persistence.aspx</link><pubDate>Tue, 17 Oct 2006 20:54:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:835577</guid><dc:creator>KevinBoske</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/kevinboske/comments/835577.aspx</comments><wfw:commentRss>http://blogs.msdn.com/kevinboske/commentrss.aspx?PostID=835577</wfw:commentRss><wfw:comment>http://blogs.msdn.com/kevinboske/rsscomments.aspx?PostID=835577</wfw:comment><description>&lt;P&gt;&amp;nbsp; &lt;A href="http://openxmldeveloper.org/members/Vijayeta+Tilak.aspx" mce_href="http://openxmldeveloper.org/members/Vijayeta+Tilak.aspx"&gt;Vijayeta Tilak&lt;/A&gt; has been posting a lot of info lately on the OpenXMLDeveloper site and posted &lt;A href="http://openxmldeveloper.org/forums/thread/628.aspx" mce_href="http://openxmldeveloper.org/forums/thread/628.aspx"&gt;this about ActiveX in OpenXML&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Its a good post, but there's a bit more to the story, and I've been meaning to post the details on ActiveX control support in Office Open XML and the changes to controls in Office 2007.&amp;nbsp; A good place to start is &lt;A href="http://blogs.msdn.com/excel/archive/tags/Trust+Center/default.aspx" mce_href="http://blogs.msdn.com/excel/archive/tags/Trust+Center/default.aspx"&gt;SamRad's posts on the Trust Center in Excel&lt;/A&gt;.&lt;/P&gt;
&lt;H1&gt;Persistence&lt;/H1&gt;
&lt;P&gt;&amp;nbsp; Previous versions of Office only supported the following interfaces for ActiveX control persistence (IPersistStorage, IPersistStream, IPersistStreamInit and IPersistPropertyBag for saving to HTML).&amp;nbsp; In order to store ActiveX control properties as XML, we added support for IPersistPropertyBag for the regular save cases (for controls that support this interface).&lt;/P&gt;
&lt;P&gt;If the control doesn't support IPersistPropertyBag, the application will attempt to save the properties using the next interface on its list (see below).&amp;nbsp;(We simply added IPeristPropertyBag to the top of the list from previous versions).&lt;/P&gt;
&lt;H3&gt;&lt;B&gt;Word and PowerPoint:&lt;/B&gt;&lt;/H3&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;STRONG&gt;IPersistPropertyBag()&lt;/STRONG&gt; 
&lt;LI&gt;&lt;B&gt;IPersistStorage()&lt;/B&gt; 
&lt;LI&gt;&lt;B&gt;IPersistStreamInit()&lt;/B&gt; 
&lt;LI&gt;&lt;B&gt;IPersistStream()&lt;/B&gt;&lt;/LI&gt;&lt;/OL&gt;
&lt;H3&gt;&lt;B&gt;Excel:&lt;/B&gt;&lt;/H3&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;B&gt;IPersistPropertyBag()&lt;/B&gt; 
&lt;LI&gt;&lt;B&gt;IPersistStreamInit()&lt;/B&gt; 
&lt;LI&gt;&lt;B&gt;IPersistStream()&lt;/B&gt; 
&lt;LI&gt;&lt;B&gt;IPersistStorage()&lt;/B&gt;&lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;For controls that persist using the IPersistPropertyBag() interface, the control properties are stored in a single xml part&amp;nbsp;with a relationship type of &lt;STRONG&gt;http://schemas.openxmlformats.org/officeDocument/2006/relationships/control&lt;/STRONG&gt;&amp;nbsp;and a content type of &lt;STRONG&gt;application/vnd.ms-office.activeX+xml&lt;/STRONG&gt;. 
&lt;P&gt;Control properties that are stored using one of the other interfaces will be stored in a binary part that is related to the XML part by the following relationship: &lt;STRONG&gt;http://schemas.microsoft.com/office/2006/relationships/activeXControlBinary &lt;/STRONG&gt;and a content type of &lt;STRONG&gt;application/vnd.ms-office.activeX&lt;/STRONG&gt;. 
&lt;P&gt;Of course, the schema is described in the Ecma spec. 
&lt;H2&gt;Next Post: MetaFiles and disabled controls&lt;/H2&gt;- Kevin&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=835577" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/kevinboske/archive/tags/Office+Open+XML+Development/default.aspx">Office Open XML Development</category><category domain="http://blogs.msdn.com/kevinboske/archive/tags/ActiveX/default.aspx">ActiveX</category></item></channel></rss>