<?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 : Setting chart appearance from an external source?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Setting chart appearance from an external source?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 14 Apr 2026 02:21:44 +0000</pubDate>
  <lastBuildDate>Wed, 04 Jan 2012 10:45:26 +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=19374</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[Setting chart appearance from an external source? : OK, found it in Samples\Chart\...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19374&amp;PID=67330&amp;title=setting-chart-appearance-from-an-external-source#67330</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6081">wssdev</a><br /><strong>Subject:</strong> 19374<br /><strong>Posted:</strong> 04 January 2012 at 10:45am<br /><br />OK, found it in Samples\Chart\ChartBrowser\ChartFromFileView.cpp, CreateChart() method.<div ="" title="Page Scroll Marker" id="PageScrollMarkerWedJan042012164311GMT0100RomanceStandardTime"><div style="top: 0px;">▼</div><div style="bottom: 0px;">▲</div></div>]]>
   </description>
   <pubDate>Wed, 04 Jan 2012 10:45:26 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19374&amp;PID=67330&amp;title=setting-chart-appearance-from-an-external-source#67330</guid>
  </item> 
  <item>
   <title><![CDATA[Setting chart appearance from an external source? :      Hi,    Am I missing...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19374&amp;PID=67314&amp;title=setting-chart-appearance-from-an-external-source#67314</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6081">wssdev</a><br /><strong>Subject:</strong> 19374<br /><strong>Posted:</strong> 03 January 2012 at 4:20am<br /><br /><b>&#091;XTP 15.1.3&#093;</b><br><br>Hi,<br><br>Am I missing something or there is no way to do chart appearance serialization to a string and back?<br><br>CXTPChartAppearance::LoadAppearance() seems to be accepting only a resource ID, implying that the appearance data must be a resource.<br><br>Internally, CXTPChartAppearance::LoadFromResource delegates the actual deserialization work to CXTPPropExchangeXMLNode. CXTPPropExchangeXMLNode itself does have a number of LoadXXX methods so apparently it can load content from a string or a file. Unfortunately, these methods are not exposed through CXTPChartAppearance anyhow.<br><br>I was thinking about deriving from CXTPChartAppearance and re-implementing LoadAppearance so that it calls CXTPPropExchangeXMLNode::LoadFromString instead of CXTPPropExchangeXMLNode::LoadFromResource. However, that would not be enough. Even if I had my derived instance, CXTPChartContent would not allow me to set that instance on it. I would then need to go through the hassle of deriving from CXTPChartContent too, only to be able to inject my own appearance.<br><br>Is there a simpler way to achieve serialization/deserialization to a string?<br><br>Thanks in advance.<br><br>&#091;Update&#093;<br>I just realized that deriving won't work, LoadFromResource is not virtual. Besides, hijacking LoadFromResource to load from an external string would already be a hack...<br><br><div ="active"="" title="Page Scroll Marker" id="PageScrollMarkerTueJan032012100302GMT0100RomanceStandardTime"><div style="top: 0px;">▼</div><div style="bottom: 0px;">▲</div></div><div ="active" title="Page Scroll Marker" id="PageScrollMarkerTueJan032012103354GMT0100RomanceStandardTime"><div style="top: 0px;">▼</div><div style="bottom: 0px;">▲</div></div>]]>
   </description>
   <pubDate>Tue, 03 Jan 2012 04:20:34 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19374&amp;PID=67314&amp;title=setting-chart-appearance-from-an-external-source#67314</guid>
  </item> 
 </channel>
</rss>