<?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 : BUG: Wrong position for group row summaries</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : BUG: Wrong position for group row summaries]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 00:14:09 +0000</pubDate>
  <lastBuildDate>Tue, 11 Oct 2022 12:16:00 +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=24332</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[BUG: Wrong position for group row summaries : Hi!I use this code to put in a...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24332&amp;PID=78540&amp;title=bug-wrong-position-for-group-row-summaries#78540</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 24332<br /><strong>Posted:</strong> 11 October 2022 at 12:16pm<br /><br />Hi!<br><br><div>I use this code to put in a summary in several levels of group rows for a column in a report control.</div><div>To create the summary I use this code:</div><div><table width="99%"><tr><td><pre class="BBcode">for (int i = 0; i &lt; TheRows-&gt;GetCount(); i++) {<br>&nbsp;&nbsp;&nbsp; CXTPReportRow* TheRow = TheRows-&gt;GetAt(i);<br><br>&nbsp;&nbsp;&nbsp; if (TheRow-&gt;IsGroupRow()) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CXTPReportGroupRow* GroupRow = reinterpret_cast&lt;CXTPReportGroupRow*&gt;(TheRow);<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; double Value=0.0;<br>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Value=DoCalculateChildren(TransactionType, GroupRow-&gt;GetChilds(), 0.0);<br></div><div>&nbsp;&nbsp;&nbsp;&nbsp; ...</div><div><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NumberFormatter_.str(L"");<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NumberFormatter_ &lt;&lt; std::dec &lt;&lt; std::fixed &lt;&lt; std::setprecision(Precision) &lt;&lt; round(Value, Precision);<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; auto GroupCaption=fmt::format(L"{} &#091;{}&#093; {} {}", GroupRow-&gt;GetCaption().GetString(), Column, NumberFormatter_.str(), Unit);<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; GroupRow-&gt;SetCaption(GroupCaption.c_str());<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; GroupRow-&gt;SetFormula(L"x");<br>&nbsp;&nbsp;&nbsp; }<br>&nbsp; }</div><div></pre></td></tr></table><br>Calculation of the summaries for each level and formatting for the group captions including the summary column is correct, but the the higher the level of the group row the more is the caption of the summary column shifted to the right. In level 0 (first group row) the placement is ok!<br></div><div>Here's a screenshot to show the problem:</div><div><br></div><div><img src="uploads/109/GroupRowPositi&#111;nProblem.png" height="154" width="1264" border="0" /></div><div><br></div><div>The problem can be reproduced in v19.1 up to including v20.3! I didn't test older versions.<br></div><div><br></div><div>How can I fix this annoying displacement?</div><div><br></div><div>TIA<br></div>]]>
   </description>
   <pubDate>Tue, 11 Oct 2022 12:16:00 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24332&amp;PID=78540&amp;title=bug-wrong-position-for-group-row-summaries#78540</guid>
  </item> 
 </channel>
</rss>