<?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 : DoPropExchange error</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : DoPropExchange error]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 18 Apr 2026 01:29:43 +0000</pubDate>
  <lastBuildDate>Mon, 02 Apr 2007 15:42:28 +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=6784</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[DoPropExchange error : Please note that i am using version...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6784&amp;PID=21635&amp;title=dopropexchange-error#21635</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2559">roychr</a><br /><strong>Subject:</strong> 6784<br /><strong>Posted:</strong> 02 April 2007 at 3:42pm<br /><br />Please note that i am using version 10.3 of codejock with MFC under visual studio 2005 with service pack 1.]]>
   </description>
   <pubDate>Mon, 02 Apr 2007 15:42:28 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6784&amp;PID=21635&amp;title=dopropexchange-error#21635</guid>
  </item> 
  <item>
   <title><![CDATA[DoPropExchange error : There is an error that slips in...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6784&amp;PID=21634&amp;title=dopropexchange-error#21634</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2559">roychr</a><br /><strong>Subject:</strong> 6784<br /><strong>Posted:</strong> 02 April 2007 at 3:36pm<br /><br />There is an error that slips in when the control loads back values from a file : After rebuilding my columns i do a DoPropExchange to set back user saved columns layout. Then the report does not seems to have any redraw message anymore. My report control is a sub-class of CXTPReportControl and is embedded into a sub-class of CXTPReportView. Why does the view not redraw itself properly after the doPropExchange is beyond me. When i scroll from left to Right the bounding for selection is not redrawed and stops at the last displayed column before the scrolling.&nbsp;The selection line spawns full line, and elements in all the cells seems to be redrawed with a bit of distortion. Columns have events enabled after scrolling beyond the former display zone, but no selection or click item event happens afterwards in the region after last column of the former displayed view.<DIV>&nbsp;</DIV><DIV>i have the following coe for saving :</DIV><DIV>&nbsp;</DIV><DIV>all my routines are in the Sub-classed report view but are only affecting the report-control inside it.</DIV><DIV>&nbsp;</DIV><DIV>CCftpo6PositionReportView::OnReportViewLoadXmlColumnsConfig(CAsstBaseReportControl&amp; Report)</DIV><DIV>{</DIV><DIV>CCftpo6XmlConfiguration* configXml = CCftpo6StaticObjects::GetXmlConfiguration();</DIV><DIV>if(configXml-&gt;Load())</DIV><DIV>{</DIV><DIV>CRuntimeClass* prt = this-&gt;GetRuntimeClass();</DIV><DIV>&nbsp;</DIV><DIV>//Get section from xml</DIV><DIV>CXTPPropExchangeSection pxReportControl(configXml-&gt;GetPropertyExchangeNode()-&gt;GetSection(_T(prt-&gt;m_lpszClassName)));</DIV><DIV>&nbsp;</DIV><DIV>//load&nbsp;from file (call original DoPropExchange, not overriden)</DIV><DIV>Report.DoPropExchange(&amp;pxReportControl);</DIV><DIV>}</DIV><DIV>}</DIV><DIV>&nbsp;</DIV><DIV>CCftpo6PositionReportView::OnReportVideSaveXmlColumnsConfig(CAsstBaseReportControl&amp; Report)</DIV><DIV>{</DIV><DIV><DIV>CCftpo6XmlConfiguration* configXml = CCftpo6StaticObjects::GetXmlConfiguration();</DIV><DIV>&nbsp;</DIV><DIV>configXml-&gt;PrepareToSave();</DIV></DIV><DIV>&nbsp;</DIV><DIV><DIV>CRuntimeClass* prt = this-&gt;GetRuntimeClass();</DIV><DIV>&nbsp;</DIV><DIV><DIV>//Get section from xml</DIV><DIV>CXTPPropExchangeSection pxReportControl(configXml-&gt;GetPropertyExchangeNode()-&gt;GetSection(_T(prt-&gt;m_lpszClassName)));</DIV><DIV>&nbsp;</DIV><DIV>pxReportControl-&gt;EmptySection();</DIV><DIV>&nbsp;</DIV><DIV>Report.DoPropertyExchange(&amp;pxReportControl);</DIV><DIV>&nbsp;</DIV><DIV>configXml-&gt;Save();</DIV><DIV>configXml-&gt;ReleaseFile();</DIV></DIV></DIV><DIV>}</DIV><DIV>&nbsp;</DIV><DIV>my content of my xml file (cftpo6App.config)</DIV><DIV>&nbsp;</DIV><DIV>...</DIV><DIV>&lt;CCftpo6PositionReportView&gt;</DIV><DIV>&lt;Columns&gt;</DIV><DIV>&lt;Column ItemIndex="0"</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Alignment="2"</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AutoWidth="100/&gt;</DIV><DIV>...this goes on up to my last column...</DIV><DIV>&lt;Column ItemIndex="28"</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Alignment="1"</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AutoWidth="100"/&gt;</DIV><DIV>&lt;/Columns&gt;</DIV><DIV>&lt;/CCftpo6PositionReportView&gt;</DIV><DIV>...</DIV><DIV>&nbsp;</DIV><DIV>The question remains that since i do not use CXTPReportControl with CXTPReportView, is there problems that can rise by subclassing both and adding functionality to them ? I did not change any of the base implementations of DoPropExchange for both objects, but the DoPropExchange of the View is not called, i call my own save/load functions. The Save/Load Function works well throughout the application, i am pretty sure there is some member values that are resetted that should not. Please look into it, we really need this to work.</DIV><DIV>&nbsp;</DIV><DIV>Christian Roy</DIV><DIV>Senior System Analyst</DIV><DIV>Land Software Engineering Center</DIV><DIV>Canada</DIV>]]>
   </description>
   <pubDate>Mon, 02 Apr 2007 15:36:49 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6784&amp;PID=21634&amp;title=dopropexchange-error#21634</guid>
  </item> 
 </channel>
</rss>