<?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 : Subtotal in Xtreme Report?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : Subtotal in Xtreme Report?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 02 May 2026 00:52:11 +0000</pubDate>
  <lastBuildDate>Mon, 20 Feb 2006 11:55: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=3568</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[Subtotal in Xtreme Report? : Hi Warren,Of course it depends...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3568&amp;PID=11076&amp;title=subtotal-in-xtreme-report#11076</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 3568<br /><strong>Posted:</strong> 20 February 2006 at 11:55am<br /><br />Hi Warren,<br><br>Of course it depends on your needs, but if you need subtotals to be always properly calculated, it would be a best solution... For example, after drag-n-drop to/from group area it would be the only way to have group row captions automatically updated.<br><br>--<br>WBR,<br>Serge<br>]]>
   </description>
   <pubDate>Mon, 20 Feb 2006 11:55:51 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3568&amp;PID=11076&amp;title=subtotal-in-xtreme-report#11076</guid>
  </item> 
  <item>
   <title><![CDATA[Subtotal in Xtreme Report? : Serge, I understand the posted...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3568&amp;PID=11067&amp;title=subtotal-in-xtreme-report#11067</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1003">Warren</a><br /><strong>Subject:</strong> 3568<br /><strong>Posted:</strong> 20 February 2006 at 9:48am<br /><br />Serge, <br><br>I understand the posted code, but where do you suggest is the most appropriate place to add this an application? <br><br>Should I derive from the report control, and add it to the end of an overrriden <span style="font-family: Courier New,Courier,mono;">virtual void Populate()</span>]]>
   </description>
   <pubDate>Mon, 20 Feb 2006 09:48:41 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3568&amp;PID=11067&amp;title=subtotal-in-xtreme-report#11067</guid>
  </item> 
  <item>
   <title><![CDATA[Subtotal in Xtreme Report? : Hi,  With the standard sample...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3568&amp;PID=10733&amp;title=subtotal-in-xtreme-report#10733</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 3568<br /><strong>Posted:</strong> 28 January 2006 at 11:35am<br /><br />Hi,<br /><br />With the standard sample application, you can calculate and show subtotals for (for example) Price column with the following piece of code. Please note that you should add Price column onto "Group By" field to enable grouping.<br /><table width="99%"><tr><td><pre class="BBcode"><br />int nCount = GetReportCtrl().GetRows()-&gt;GetCount();<br />for (int i = nCount - 1; i &gt;= 0; i--)<br />{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CXTPReportRow* pRow = GetReportCtrl().GetRows()-&gt;GetAt(i);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (pRow-&gt;IsGroupRow())<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // calculate subtotals<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; double dSubtotal = 0;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CXTPReportRows* pChildren = pRow-&gt;GetChilds();<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for (int j = pChildren-&gt;GetCount() - 1; j &gt;= 0; j--)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CXTPReportRow*  pChild = pChildren-&gt;GetAt(j);<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CMessageRecordItemPrice*  pItem = DYNAMIC_DOWNCAST(CMessageRecordItemPrice, pChild-&gt;GetRecord()-&gt;GetItem(COLUMN_PRICE));<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dSubtotal  += pItem-&gt;GetValue();<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // set caption<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CXTPReportGroupRow* pGroupRow = (CXTPReportGroupRow*)pRow;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CString strSubtotal;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; strSubtotal.Format(_T("(Subtotal:  %f)"), dSubtotal);<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pGroupRow-&gt;SetCaption(pGroupRow-&gt;GetCaption()  + strSubtotal);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />}<br /></pre></td></tr></table><br /><br />--<br />WBR,<br />Serge]]>
   </description>
   <pubDate>Sat, 28 Jan 2006 11:35:42 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3568&amp;PID=10733&amp;title=subtotal-in-xtreme-report#10733</guid>
  </item> 
  <item>
   <title><![CDATA[Subtotal in Xtreme Report? : Hi How can make subtotals with...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3568&amp;PID=10712&amp;title=subtotal-in-xtreme-report#10712</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1748">exycomm</a><br /><strong>Subject:</strong> 3568<br /><strong>Posted:</strong> 27 January 2006 at 9:08am<br /><br /><P>Hi</P><P>How can make subtotals with this control?</P><P>thanks!</P>]]>
   </description>
   <pubDate>Fri, 27 Jan 2006 09:08:36 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3568&amp;PID=10712&amp;title=subtotal-in-xtreme-report#10712</guid>
  </item> 
 </channel>
</rss>