<?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 : Display a ReportControl</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : Display a ReportControl]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 18 Apr 2026 01:54:52 +0000</pubDate>
  <lastBuildDate>Mon, 15 Oct 2007 01:15:20 +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=5211</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[Display a ReportControl : Hi Serge, I tried your given...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5211&amp;PID=27311&amp;title=display-a-reportcontrol#27311</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=792">manoj</a><br /><strong>Subject:</strong> 5211<br /><strong>Posted:</strong> 15 October 2007 at 1:15am<br /><br /><P>Hi Serge,</P><P>I tried your given sample but same error occured here also (my post <a href="http://forum.codejock.com/forum_posts.asp?TID=8421" target="_blank">http://forum.codejock.com/forum_posts.asp?TID=8421</A>)</P><FONT size=2><P>CRepCtrlOnCFormViewView::CRepCtrlOnCFormViewView()</P><P>: CFormView(CRepCtrlOnCFormViewView::IDD)</P><P>{</P><P></FONT><FONT color=#008000 size=2>//{{AFX_DATA_INIT(CRepCtrlOnCFormViewView)</P></FONT><FONT size=2><P></FONT><FONT color=#008000 size=2>// NOTE: the ClassWizard will add member initialization here</P></FONT><FONT size=2><P></FONT><FONT color=#008000 size=2>//}}AFX_DATA_INIT</P></FONT><FONT size=2><P></FONT><FONT color=#008000 size=2>// TODO: add construction code here</P></FONT><FONT size=2><P>}</P><DIV></DIV><P>&nbsp;</P><P>I attached a call stack of given sample</P><DIV></DIV><a href="http://forum.codejock.com/uploads/20071015_011416_callstack.zip" target="_blank">uploads/20071015_011416_callstack.zip</A><DIV></DIV><DIV></DIV>&nbsp;<DIV></DIV><DIV></DIV>&nbsp;<DIV></DIV>Kind Regards<DIV></DIV><DIV></DIV>&nbsp;<DIV></DIV>&nbsp;<DIV></DIV>Manoj Jangid</FONT>]]>
   </description>
   <pubDate>Mon, 15 Oct 2007 01:15:20 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5211&amp;PID=27311&amp;title=display-a-reportcontrol#27311</guid>
  </item> 
  <item>
   <title><![CDATA[Display a ReportControl : Big thanks for the SampleI had...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5211&amp;PID=16369&amp;title=display-a-reportcontrol#16369</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2371">baerten</a><br /><strong>Subject:</strong> 5211<br /><strong>Posted:</strong> 06 October 2006 at 5:05am<br /><br />Big thanks for the Sample<br><br>I had no errors during creation of the ReportControl<br><br>So i placed the "Creation Code" in the OnInitialUpdate() of my CFormView and all works nicely<br>Before i had the code in the OnCreate() Method<br><br>I startet in MFFC since 2 weeks. Before i made it all with .NET Forms.<br>So, the changings between MFC and "click-click-click-it works" .NET are still enormously<br><br>Thanks for your great support ! <br>]]>
   </description>
   <pubDate>Fri, 06 Oct 2006 05:05:10 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5211&amp;PID=16369&amp;title=display-a-reportcontrol#16369</guid>
  </item> 
  <item>
   <title><![CDATA[Display a ReportControl : AfxGetInstanceHandle is a global...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5211&amp;PID=16368&amp;title=display-a-reportcontrol#16368</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 5211<br /><strong>Posted:</strong> 06 October 2006 at 4:34am<br /><br />AfxGetInstanceHandle is a global MFC function. Please see MSDN help on it.<br>&nbsp;<br>Report control is a window and it works together with other windows.<br>It works with CFormView as well.<br>&nbsp;<br>Did you try to insert those 2 lines to your FormView class constructor?<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; HINSTANCE hRCthisDLL = AfxFindResourceHandle(MAKEINTRESOURCE(IDD), RT_DIALOG); <br>&nbsp;&nbsp;&nbsp; Grid.RegisterWindowClass(hRCthisDLL);<br>&nbsp;<br>Did you try to go inside FormView creation in the debugger to understand where is a problem?<br>If sill no, try it.<br>&nbsp;<br>Does some errors appear during formView window creation?<br>&nbsp;<br>&nbsp;<br>Also, you can use CXTPReportControl::Create() method to create control.<br>&nbsp;<br>To help you with understnading, I've just created a simple sample. <br>Exract it and put to folder:<br>&nbsp;&nbsp;&nbsp; ToolkitPro\Samples\ReportControl<br><br><a href="uploads/20061006_043431_RepCtrl&#079;nC&#070;ormV.zip" target="_blank">uploads/20061006_043431_RepCtrlOnCFormV.zip</a><br>&nbsp;&nbsp;  <br>--<br>WBR,<br>Serge <br>]]>
   </description>
   <pubDate>Fri, 06 Oct 2006 04:34:55 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5211&amp;PID=16368&amp;title=display-a-reportcontrol#16368</guid>
  </item> 
  <item>
   <title><![CDATA[Display a ReportControl : I don&amp;#039;t have a AfxGetInstanceHandle()...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5211&amp;PID=16329&amp;title=display-a-reportcontrol#16329</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2371">baerten</a><br /><strong>Subject:</strong> 5211<br /><strong>Posted:</strong> 05 October 2006 at 4:07am<br /><br />I don't have a AfxGetInstanceHandle() in my source code<br><br>Grid.ShowWindow(SW_SHOW); doesn't work, it produces an error in winocc.cpp<br><br>Other components on the form are showed correctly<br><br>Does the ReportControl Grid work with CFormView ?<br><br>Big Thanks<br>]]>
   </description>
   <pubDate>Thu, 05 Oct 2006 04:07:17 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5211&amp;PID=16329&amp;title=display-a-reportcontrol#16329</guid>
  </item> 
  <item>
   <title><![CDATA[Display a ReportControl : Hi,Firstly, please check whether...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5211&amp;PID=16302&amp;title=display-a-reportcontrol#16302</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 5211<br /><strong>Posted:</strong> 04 October 2006 at 8:27am<br /><br />Hi,<br><br>Firstly, please check whether the window is visible <img src="http://forum.codejock.com/smileys/smiley1.gif" border="0" align="middle"><br>Try calling Grid.ShowWindow(SW_SHOW);<br><br>Also, quite often a similar problem is caused because by default "XTPReport" window class is registered in context of Application instance handle (AfxGetInstanceHandle() is called). To resolve it, you have to call RegisterWindowClass() in context of your dll resource(instance) handle.<br>Example:<br><table width="99%"><tr><td><pre class="BBcode"><br>CTestDlgRepCtrl::CTestDlgRepCtrl(CWnd* pParent /*=NULL*/)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : CDialog(CTestDlgRepCtrl::IDD, pParent)<br>{&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; HINSTANCE hRCthisDLL = AfxFindResourceHandle(MAKEINTRESOURCE(IDD), RT_DIALOG); <br>&nbsp;&nbsp;&nbsp; m_wndReport.RegisterWindowClass(hRCthisDLL);<br>}<br></pre></td></tr></table><br><br>--<br>WBR,<br>Serge<br>]]>
   </description>
   <pubDate>Wed, 04 Oct 2006 08:27:25 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5211&amp;PID=16302&amp;title=display-a-reportcontrol#16302</guid>
  </item> 
  <item>
   <title><![CDATA[Display a ReportControl : Hello,i&amp;#039;m new at the MFC-World.I...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5211&amp;PID=16298&amp;title=display-a-reportcontrol#16298</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2371">baerten</a><br /><strong>Subject:</strong> 5211<br /><strong>Posted:</strong> 04 October 2006 at 3:34am<br /><br />Hello,<br><br>i'm new at the MFC-World.<br><br>I made a MDI-Application and added a new DocTemplate to the applic :<br><br>&nbsp;&nbsp;&nbsp; pDocTemplate = new CMultiDocTemplate(IDR_Search,<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; RUNTIME_CLASS(FSearchDoc),<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; RUNTIME_CLASS(FSearch), // custom MDI child frame<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; RUNTIME_CLASS(FSearchView));<br>&nbsp;&nbsp;&nbsp; if (!pDocTemplate)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return FALSE;<br>&nbsp;&nbsp;&nbsp; AddDocTemplate(pDocTemplate);<br><br>The View is related to a Dialog <br>( : CFormView(FSearchView::IDD)&nbsp; )<br><br>it works nice with the <b><font size="2">Office2007Frame-Style <br><br></font></b><font size="2">Now i insertet a custom control on the Dialog and entered the classname "XTPReport"<br>Then i create the member to the View of type</font><b><font size="2"> "CXTPReportControl Grid;"<br></font></b><font size="2">and related the member to the Ressource : DDX_Control(pDX, ID_GRID, Grid);<br><br>At the "OnCreate" i add the columns to the grid and some sample records.<br><br>all executes without errors, but i dont see the grid in the window ( when it runs )<br><br>Big thanks<br></font>]]>
   </description>
   <pubDate>Wed, 04 Oct 2006 03:34:55 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5211&amp;PID=16298&amp;title=display-a-reportcontrol#16298</guid>
  </item> 
 </channel>
</rss>