<?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 : Report c&#111;ntrol</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Report c&#111;ntrol]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 21 Apr 2026 06:26:00 +0000</pubDate>
  <lastBuildDate>Wed, 18 May 2005 13:42:50 +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=2249</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[Report c&#111;ntrol : Thanks a lot great input ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2249&amp;PID=6667&amp;title=report-control#6667</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1184">JGranborg</a><br /><strong>Subject:</strong> 2249<br /><strong>Posted:</strong> 18 May 2005 at 1:42pm<br /><br />Thanks a lot great input]]>
   </description>
   <pubDate>Wed, 18 May 2005 13:42:50 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2249&amp;PID=6667&amp;title=report-control#6667</guid>
  </item> 
  <item>
   <title><![CDATA[Report c&#111;ntrol :  look at the report grid same,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2249&amp;PID=6666&amp;title=report-control#6666</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1081">bevpet</a><br /><strong>Subject:</strong> 2249<br /><strong>Posted:</strong> 18 May 2005 at 1:39pm<br /><br /><P><FONT size=1></FONT>&nbsp;</P><P><FONT size=1>look at the report grid same, it has the functions to save/restore the state of a reportbar.</FONT></P><P><FONT size=1>(...\Codejock Software\MFC\Xtreme Toolkit Pro\Samples\ReportControl\ReportSample)</FONT></P><FONT color=#0000ff><P><FONT size=1>void</FONT></FONT><FONT size=1> CReportSampleView::LoadReportState()</FONT></P><P><FONT size=1>{</FONT></P><FONT color=#0000ff><P><FONT size=1>#ifdef</FONT></FONT><FONT size=1> XML_STATE</FONT></P><P><FONT size=1>CXTPPropExchangeXMLNode px(TRUE, 0, _T("ReportControl"));</FONT></P><P><FONT size=1><FONT color=#0000ff>if</FONT> (!px.LoadFromFile(_T("c:\\ReportControl.xml")))</FONT></P><P><FONT size=1><FONT color=#0000ff>return</FONT>;</FONT></P><P><FONT size=1></FONT></P><P><FONT size=1>m_wndReport.DoPropExchange(&amp;px);</FONT></P><FONT color=#0000ff><P><FONT size=1>#else</FONT></FONT><FONT size=1> </FONT></P><P><FONT size=1>UINT nBytes = 0;</FONT></P><P><FONT size=1>LPBYTE pData = 0;</FONT></P><P><FONT size=1><FONT color=#0000ff>if</FONT> (!AfxGetApp()-&gt;GetProfileBinary(_T("ReportControl"), _T("State"), &amp;pData, &amp;nBytes))</FONT></P><P><FONT size=1><FONT color=#0000ff>return</FONT>;</FONT></P><P><FONT size=1>CMemFile memFile(pData, nBytes);</FONT></P><P><FONT size=1>CArchive ar (&amp;memFile,CArchive::load);</FONT></P><P><FONT color=#0000ff><FONT size=1>try</FONT></P></FONT><P><FONT size=1>{</FONT></P><P><FONT size=1>m_wndReport.SerializeState(ar);</FONT></P><P><FONT size=1>}</FONT></P><P><FONT size=1><FONT color=#0000ff>catch</FONT> (COleException* pEx)</FONT></P><P><FONT size=1>{</FONT></P><P><FONT size=1>pEx-&gt;Delete ();</FONT></P><P><FONT size=1>}</FONT></P><P><FONT size=1><FONT color=#0000ff>catch</FONT> (CArchiveException* pEx)</FONT></P><P><FONT size=1>{</FONT></P><P><FONT size=1>pEx-&gt;Delete ();</FONT></P><P><FONT size=1>}</FONT></P><P><FONT size=1>ar.Close();</FONT></P><P><FONT size=1>memFile.Close();</FONT></P><P><FONT size=1><FONT color=#0000ff>delete</FONT>&#091;&#093; pData;</FONT></P><FONT color=#0000ff size=1><P>#endif</P></FONT><P><FONT size=1>}</FONT></P><FONT color=#0000ff><P><FONT size=1>void</FONT></FONT><FONT size=1> CReportSampleView::SaveReportState()</FONT></P><P><FONT size=1>{</FONT></P><FONT color=#0000ff><P><FONT size=1>#ifdef</FONT></FONT><FONT size=1> XML_STATE</FONT></P><P><FONT size=1></FONT></P><P><FONT size=1>CXTPPropExchangeXMLNode px(FALSE, 0, _T("ReportControl"));</FONT></P><P><FONT size=1>m_wndReport.DoPropExchange(&amp;px);</FONT></P><P><FONT size=1>px.SaveToFile(_T("c:\\ReportControl.xml"));</FONT></P><FONT color=#0000ff size=1><P>#else</P></FONT><P><FONT size=1>CMemFile memFile;</FONT></P><P><FONT size=1>CArchive ar (&amp;memFile,CArchive::store);</FONT></P><P><FONT size=1>m_wndReport.SerializeState(ar);</FONT></P><P><FONT size=1>ar.Flush();</FONT></P><P><FONT size=1>DWORD nBytes = (DWORD)memFile.GetPosition();</FONT></P><P><FONT size=1>LPBYTE pData = memFile.Detach();</FONT></P><P><FONT size=1>AfxGetApp()-&gt;WriteProfileBinary(_T("ReportControl"), _T("State"), pData, nBytes);</FONT></P><P><FONT size=1>ar.Close();</FONT></P><P><FONT size=1>memFile.Close();</FONT></P><P><FONT size=1>free(pData);</FONT></P><FONT color=#0000ff><P><FONT size=1>#endif</FONT></P><P><FONT size=1>}</FONT></P></FONT><P><FONT size=1>HTH</FONT></P><P><FONT size=1>Peter</FONT></P><P><FONT size=1></FONT>&nbsp;</P>]]>
   </description>
   <pubDate>Wed, 18 May 2005 13:39:56 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2249&amp;PID=6666&amp;title=report-control#6666</guid>
  </item> 
  <item>
   <title><![CDATA[Report c&#111;ntrol : I like to save the state of the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2249&amp;PID=6662&amp;title=report-control#6662</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1184">JGranborg</a><br /><strong>Subject:</strong> 2249<br /><strong>Posted:</strong> 18 May 2005 at 10:50am<br /><br /><P>I like to save the state of the report control when the user leaves it</P><P>or alternative</P><P>Start with som grouping based on one of the columns</P><P>Does any of the examples give some help.</P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Wed, 18 May 2005 10:50:33 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2249&amp;PID=6662&amp;title=report-control#6662</guid>
  </item> 
 </channel>
</rss>