<?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 : Help! How to save QAT to our file?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Help! How to save QAT to our file?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 13 Jun 2026 13:35:00 +0000</pubDate>
  <lastBuildDate>Tue, 25 Jan 2011 07:28:56 +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=17806</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[Help! How to save QAT to our file? : Hope it works now :) ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17806&amp;PID=62299&amp;title=help-how-to-save-qat-to-our-file#62299</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 17806<br /><strong>Posted:</strong> 25 January 2011 at 7:28am<br /><br />Hope it works now :)]]>
   </description>
   <pubDate>Tue, 25 Jan 2011 07:28:56 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17806&amp;PID=62299&amp;title=help-how-to-save-qat-to-our-file#62299</guid>
  </item> 
  <item>
   <title><![CDATA[Help! How to save QAT to our file? : Doh! I wasn&amp;#039;t appending the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17806&amp;PID=62287&amp;title=help-how-to-save-qat-to-our-file#62287</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3213">rdhd</a><br /><strong>Subject:</strong> 17806<br /><strong>Posted:</strong> 24 January 2011 at 2:34pm<br /><br />Doh! I wasn't appending the element to my root node! <DIV>&nbsp;</DIV><DIV>I made a call to save to a file (which I had written earlier) where I don't create the node for the constructor call (px variable) and for which I call px.SaveToFile with a temp file. Data was saved. I then quit concentrating on setting up and performing the prop exchange and realized I created an element but didn't do anything with it except use it for the prop exchange!.</DIV>]]>
   </description>
   <pubDate>Mon, 24 Jan 2011 14:34:48 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17806&amp;PID=62287&amp;title=help-how-to-save-qat-to-our-file#62287</guid>
  </item> 
  <item>
   <title><![CDATA[Help! How to save QAT to our file? : I need to save out the QAT and...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17806&amp;PID=62286&amp;title=help-how-to-save-qat-to-our-file#62286</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3213">rdhd</a><br /><strong>Subject:</strong> 17806<br /><strong>Posted:</strong> 24 January 2011 at 1:23pm<br /><br />I need to save out the QAT and command bar settings to our xml based customization file. I am creating an XML element in our file and obtaining the CXTPDOMNodePtr from the element, setting up a prop exchange object and call DoPropExchange. But when I am finished and I save the DOM data to a file, no command bar data appears. I have stepped thru the CJ code and I see calls that appear to be writing data. But where is the data? <DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV>&nbsp;</DIV><DIV>I have been able to write out data when I don't pass in the xml node and later call &nbsp;px.SaveToFile but in this case I provide the node in our file so I can capture the data in our file (I need to write out multiple QATs and command bar settings for each MDI document type we support).</DIV><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas><P></FONT></FONT><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas>if</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas> (m_pElement)</P><P>{</P><P>CXTPDOMNodePtr pNode = m_pElement;</P><P></FONT></FONT><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas>if</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas>( pNode )</P><P>{</P><P>CXTPPropExchangeXMLNode px( FALSE, pNode, _T(</FONT></FONT><FONT color=#a31515 size=2 face=C&#111;nsolas><FONT color=#a31515 size=2 face=C&#111;nsolas><FONT color=#a31515 size=2 face=C&#111;nsolas>"Settings"</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas>) );</P><P></FONT></FONT><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas>if</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas>( px.OnBeforeExchange() ) </P><P>{</P><P>CXTPPropExchangeSection pxCommandBars( px.GetSection( _T(</FONT></FONT><FONT color=#a31515 size=2 face=C&#111;nsolas><FONT color=#a31515 size=2 face=C&#111;nsolas><FONT color=#a31515 size=2 face=C&#111;nsolas>"CommandBars"</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas>) ) );</P><P>XTP_COMMANDBARS_PROPEXCHANGE_PARAM param; </P><P>param.bSerializeControls = TRUE; </P><P>param.bSaveOriginalControls = FALSE;</P><P>param.bSerializeOptions = TRUE;</P><P>pCommandBars-&gt;DoPropExchange( &amp;pxCommandBars, &amp;param );</P><P>}</P><P>}</P><P>}</P><DIV></DIV><P>What is wrong with the above code? OR what do I do to get the command bar data written to our file (along with other data we write in the file)?</FONT></FONT></P>]]>
   </description>
   <pubDate>Mon, 24 Jan 2011 13:23:21 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17806&amp;PID=62286&amp;title=help-how-to-save-qat-to-our-file#62286</guid>
  </item> 
 </channel>
</rss>