<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : Saving the RibbonBar</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Saving the RibbonBar]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 10 Jun 2026 06:35:57 +0000</pubDate>
  <lastBuildDate>Wed, 20 Sep 2006 09:05:51 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=5100</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[Saving the RibbonBar : Hello,  yes, there is no way...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5100&amp;PID=15901&amp;title=saving-the-ribbonbar#15901</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 5100<br /><strong>Posted:</strong> 20 September 2006 at 9:05am<br /><br />Hello,<DIV>&nbsp;</DIV><DIV>yes, there is no way to save ribbonbar - all methods only save its QuickAccess controls and&nbsp; some options. you need to create it programmatically.</DIV>]]>
   </description>
   <pubDate>Wed, 20 Sep 2006 09:05:51 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5100&amp;PID=15901&amp;title=saving-the-ribbonbar#15901</guid>
  </item> 
  <item>
   <title><![CDATA[Saving the RibbonBar : Hi,  I&amp;#039;m saving the ribbonbar...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5100&amp;PID=15896&amp;title=saving-the-ribbonbar#15896</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2071">cryo75</a><br /><strong>Subject:</strong> 5100<br /><strong>Posted:</strong> 20 September 2006 at 7:53am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>I'm saving the ribbonbar as follows:</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp;&nbsp; Dim oState As StateOptions<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; Set oState = cbar.CreateStateOptions<BR>&nbsp;&nbsp;&nbsp; With oState<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .LoadSilent = False<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .SaveOnlyCustomized = False<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .SaveOriginalControls = True<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .SerializeDesignerControls = True<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .SerializeControls = True<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .SerializeImages = True<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .SerializeLayout = True<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .SerializeOptions = True<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .SerializeActions = True<BR>&nbsp;&nbsp;&nbsp; End With<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; Dim sXML&nbsp; As String<BR>&nbsp;&nbsp;&nbsp; Dim sFile As String<BR>&nbsp;&nbsp;&nbsp; Dim iFile As Integer<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; sXML = cbar.SaveStateToXMLString("DesignerFile", oState)<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; sFile = App.Path &amp; "\Layout.xml"<BR>&nbsp;&nbsp;&nbsp; iFile = FreeFile<BR>&nbsp;&nbsp;&nbsp; 'Kill sFile<BR>&nbsp;&nbsp;&nbsp; Open sFile For Binary As #iFile<BR>&nbsp;&nbsp;&nbsp; Put #iFile, , sXML<BR>&nbsp;&nbsp;&nbsp; Close #iFile</DIV><DIV>&nbsp;</DIV><DIV>Then I load it as follows:</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp;&nbsp; Dim oState As StateOptions<BR>&nbsp;&nbsp;&nbsp; Dim oRib As RibbonBar<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; Set oState = cbar.CreateStateOptions<BR>&nbsp;&nbsp;&nbsp; With oState<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .LoadSilent = False<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .SaveOnlyCustomized = False<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .SaveOriginalControls = True<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .SerializeDesignerControls = True<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .SerializeControls = True<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .SerializeImages = True<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .SerializeLayout = True<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .SerializeOptions = True<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .SerializeActions = True<BR>&nbsp;&nbsp;&nbsp; End With<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; Dim sXML&nbsp; As String<BR>&nbsp;&nbsp;&nbsp; Dim sFile As String<BR>&nbsp;&nbsp;&nbsp; Dim iFile As Integer</DIV><DIV>&nbsp;&nbsp;&nbsp; sFile = App.Path &amp; "\Layout.xml"<BR>&nbsp;&nbsp;&nbsp; iFile = FreeFile<BR>&nbsp;&nbsp;&nbsp; sXML = Space(FileLen(sFile))<BR>&nbsp;&nbsp;&nbsp; Open sFile For Binary As #iFile<BR>&nbsp;&nbsp;&nbsp; Get #iFile, , sXML<BR>&nbsp;&nbsp;&nbsp; Close #iFile<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; cbar.LoadStateFromXMLString "DesignerFile", sXML, oState<BR>&nbsp;&nbsp;&nbsp; cbar.RecalcLayout</DIV><DIV>&nbsp;</DIV><DIV>Problem! On loading the ribbonbar is not being displayed. How do I display it once loaded?</DIV><DIV>&nbsp;</DIV><DIV>Thanks,</DIV><DIV>Ivan</DIV>]]>
   </description>
   <pubDate>Wed, 20 Sep 2006 07:53:33 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5100&amp;PID=15896&amp;title=saving-the-ribbonbar#15896</guid>
  </item> 
 </channel>
</rss>