<?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 : [SOLVED] ACCVIO when calling ShowHeaderRows(FALSE)</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : [SOLVED] ACCVIO when calling ShowHeaderRows(FALSE)]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 04 Jun 2026 13:16:21 +0000</pubDate>
  <lastBuildDate>Mon, 05 Dec 2011 19:48:44 +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=19265</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[[SOLVED] ACCVIO when calling ShowHeaderRows(FALSE) : This should already be fixed for...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19265&amp;PID=67043&amp;title=solved-accvio-when-calling-showheaderrowsfalse#67043</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1755">ABuenger</a><br /><strong>Subject:</strong> 19265<br /><strong>Posted:</strong> 05 December 2011 at 7:48pm<br /><br />This should already be fixed for the next release.<br><br>]]>
   </description>
   <pubDate>Mon, 05 Dec 2011 19:48:44 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19265&amp;PID=67043&amp;title=solved-accvio-when-calling-showheaderrowsfalse#67043</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED] ACCVIO when calling ShowHeaderRows(FALSE) :     Hi;I created the header...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19265&amp;PID=67036&amp;title=solved-accvio-when-calling-showheaderrowsfalse#67036</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 19265<br /><strong>Posted:</strong> 05 December 2011 at 10:59am<br /><br />Hi;<br><br>I created the header records portion of a report control this way:<br><table width="99%"><tr><td><pre class="BBcode">&nbsp;&nbsp;&nbsp; Report_.GetHeaderRecords()-&gt;RemoveAll();<br><br>&nbsp;&nbsp;&nbsp; CXTPReportRecord* Record=Report_.GetHeaderRecords()-&gt;Add(new CXTPReportRecord());<br><br>&nbsp;&nbsp;&nbsp; for (int i=0; i&lt;Report_.GetColumns()-&gt;GetCount(); i++) {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (i&lt;13) {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CXTPReportRecordItem* Item=Record-&gt;AddItem(new CXTPReportRecordItem());<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Item-&gt;SetEditable(FALSE);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; } else {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CXTPReportRecordItem* Item=Record-&gt;AddItem(new CXTPReportRecordItemText());<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Item-&gt;SetEditable(TRUE);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; Report_.HeaderRowsAllowEdit(TRUE);<br>&nbsp;&nbsp;&nbsp; Report_.HeaderRowsEnableSelection(FALSE);</pre></td></tr></table><br><br>The header row is used to define custom filtering conditions. When the user finished filtering I call this function:<br><table width="99%"><tr><td><pre class="BBcode">void CCompoundReport::ClearFilter() {<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; BeginWaitCursor();<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; Report_.BeginUpdate();<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; CXTPReportRecord* Record=Report_.GetHeaderRecords()-&gt;GetAt(0);<br>&nbsp;&nbsp;&nbsp; for (int i=0; i&lt;Report_.GetColumns()-&gt;GetCount(); i++) {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CCompoundReportColumn* Column=reinterpret_cast&lt;CCompoundReportColumn*&gt;(Report_.GetColumns()-&gt;GetAt(i));<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (Column-&gt;GetItemData()!=0) {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CXTPReportRecordItemText* Item=DYNAMIC_DOWNCAST(CXTPReportRecordItemText, Record-&gt;GetItem(i));<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (Item!=0)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Item-&gt;SetValue(_T(""));<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp; for (int i=0; i&lt;Report_.GetRecords()-&gt;GetCount(); i++) {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Report_.GetRecords()-&gt;GetAt(i)-&gt;SetVisible(TRUE);<br>&nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; Report_.Populate();<br>&nbsp;&nbsp;&nbsp; Report_.ShowHeaderRows(FALSE);<br>&nbsp;&nbsp;&nbsp; Report_.EndUpdate();<br><br>&nbsp;&nbsp;&nbsp; IsFiltered_=false;<br><br>&nbsp;&nbsp;&nbsp; EndWaitCursor();<br>}</pre></td></tr></table><br><br>As soon as I call ShowHeaderRows(FALSE) I get the ACCVIO below. I tried to put the call elsewhere in code and it ALWAYS crashes. <b>CXTPReportSection *pSection = pRow-&gt;GetSection();</b> in CXTPReportSections::EnsureVisible is a NULL pointer<br><br>Call stack:<br><table width="99%"><tr><td><pre class="BBcode"><b><font color="#0000FF">ToolkitPro1513vc90UD.dll!CXTPReportRow::GetSection()&nbsp; Zeile 814 + 0x3 Bytes&nbsp;&nbsp;&nbsp; C++</font></b><br>&nbsp;&nbsp;&nbsp;&nbsp; ToolkitPro1513vc90UD.dll!CXTPReportSections::EnsureVisible(CDC * pDC=0x0013df88, CXTPReportRow * pRow=0x00000000)&nbsp; Zeile 86 + 0x8 Bytes&nbsp;&nbsp;&nbsp; C++<br>&nbsp;&nbsp;&nbsp;&nbsp; ToolkitPro1513vc90UD.dll!CXTPReportControl::EnsureVisible(CXTPReportRow * pRow=0x00000000)&nbsp; Zeile 2031 + 0x23 Bytes&nbsp;&nbsp;&nbsp; C++<br>&nbsp;&nbsp;&nbsp;&nbsp; ToolkitPro1513vc90UD.dll!CXTPReportControl::SetFocusedRow(int bEnsureVisible=0x00000001, CXTPReportRow * pRow=0x00000000, int bShiftKey=0x00000000, int bControlKey=0x00000000)&nbsp; Zeile 1944&nbsp;&nbsp;&nbsp; C++<br>&nbsp;&nbsp;&nbsp;&nbsp; ToolkitPro1513vc90UD.dll!CXTPReportControl::SetFocusedRow(CXTPReportRow * pRow=0x00000000, int bControlKey=0x00000000)&nbsp; Zeile 1768&nbsp;&nbsp;&nbsp; C++<br>&nbsp;&nbsp;&nbsp;&nbsp; ToolkitPro1513vc90UD.dll!CXTPReportNavigator::MoveFirstVisibleRow(XTPReportRowType TargetType=xtpRowTypeBody)&nbsp; Zeile 532&nbsp;&nbsp;&nbsp; C++<br>&nbsp;&nbsp;&nbsp;&nbsp; ToolkitPro1513vc90UD.dll!CXTPReportNavigator::SetCurrentFocusInHeadersRows(int bCurrentFocusInHeadersRows=0x00000000)&nbsp; Zeile 483&nbsp;&nbsp;&nbsp; C++<br>&gt;&nbsp;&nbsp;&nbsp; ToolkitPro1513vc90UD.dll!CXTPReportControl::ShowHeaderRows(int bShow=0x00000000)&nbsp; Zeile 139&nbsp;&nbsp;&nbsp; C++<br>&nbsp;&nbsp;&nbsp;&nbsp; XRMiniLIMS.exe!CCompoundReport::ClearFilter()&nbsp; Zeile 855 + 0x13 Bytes&nbsp;&nbsp;&nbsp; C++<br>&nbsp;&nbsp;&nbsp;&nbsp; XRMiniLIMS.exe!CReportingWnd::ClearFilter()&nbsp; Zeile 230&nbsp;&nbsp;&nbsp; C++<br>&nbsp;&nbsp;&nbsp;&nbsp; XRMiniLIMS.exe!CMiniLIMSFrameWnd::OnReportingClearFilter()&nbsp; Zeile 2184&nbsp;&nbsp;&nbsp; C++</pre></td></tr></table><br><br>How can I fix this?<br>]]>
   </description>
   <pubDate>Mon, 05 Dec 2011 10:59:44 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19265&amp;PID=67036&amp;title=solved-accvio-when-calling-showheaderrowsfalse#67036</guid>
  </item> 
 </channel>
</rss>