<?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 : add header/footer to ReportControlview print ?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : add header/footer to ReportControlview print ?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 18 Apr 2026 22:16:27 +0000</pubDate>
  <lastBuildDate>Thu, 03 Sep 2009 05:02:31 +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=14913</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[add header/footer to ReportControlview print ? : Thank you  ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14913&amp;PID=52717&amp;title=add-header-footer-to-reportcontrolview-print#52717</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=66">zaksoft</a><br /><strong>Subject:</strong> 14913<br /><strong>Posted:</strong> 03 September 2009 at 5:02am<br /><br />Thank you<DIV></DIV>]]>
   </description>
   <pubDate>Thu, 03 Sep 2009 05:02:31 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14913&amp;PID=52717&amp;title=add-header-footer-to-reportcontrolview-print#52717</guid>
  </item> 
  <item>
   <title><![CDATA[add header/footer to ReportControlview print ? : Follow my promice - I add CXTP...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14913&amp;PID=52700&amp;title=add-header-footer-to-reportcontrolview-print#52700</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 14913<br /><strong>Posted:</strong> 02 September 2009 at 10:10pm<br /><br />Follow my promice - I add <FONT size=2>CXTPReportPaintManager:</FONT>:<FONT size=2>ShowWYSIWYGMarkers(BOOL bSet)&nbsp;function &nbsp;- <DIV>you can dynamically set it On or Off to show or hide Red End of Page WYSIWYG mode markers</DIV></FONT>]]>
   </description>
   <pubDate>Wed, 02 Sep 2009 22:10:00 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14913&amp;PID=52700&amp;title=add-header-footer-to-reportcontrolview-print#52700</guid>
  </item> 
  <item>
   <title><![CDATA[add header/footer to ReportControlview print ? : Additional custom variables -...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14913&amp;PID=52089&amp;title=add-header-footer-to-reportcontrolview-print#52089</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 14913<br /><strong>Posted:</strong> 17 August 2009 at 5:53pm<br /><br />Additional custom variables - only if you derive own ReportView class. <DIV>&nbsp;</DIV><DIV>Basic custom variables - sure: you&nbsp;have this two strings (in <FONT size=2>CXTPReportView or your derive class like <FONT size=2>CReportPaneViewView</FONT>)&nbsp;</FONT>to store and load</DIV><DIV>&nbsp;</DIV><DIV><FONT size=2><FONT color=#0000cc><FONT size=2>GetPrintOptions()</FONT>-&gt;GetPageHeader()-&gt;m_strFormatString</FONT></FONT></DIV><DIV><FONT size=2><DIV><FONT size=2><FONT size=2><P><FONT color=#0000cc>GetPrintOptions()</FONT></FONT><FONT color=#0000cc>-&gt;GetPageFooter()-&gt;m_strFormatString</FONT></FONT></P></DIV><DIV><FONT size=2>You can keep in this vars enough information (and using "\n" add extra lines)</DIV></FONT></DIV></FONT>]]>
   </description>
   <pubDate>Mon, 17 Aug 2009 17:53:38 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14913&amp;PID=52089&amp;title=add-header-footer-to-reportcontrolview-print#52089</guid>
  </item> 
  <item>
   <title><![CDATA[add header/footer to ReportControlview print ? : Thanks Mark for the explanation...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14913&amp;PID=52087&amp;title=add-header-footer-to-reportcontrolview-print#52087</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4876">unknow</a><br /><strong>Subject:</strong> 14913<br /><strong>Posted:</strong> 17 August 2009 at 5:42pm<br /><br />Thanks Mark for the explanation of the reportpaneview sample, I could include the improved look without efforts <img src="https://forum.codejock.com/smileys/smiley2.gif" border="0"><DIV>&nbsp;</DIV><DIV>Another question if you don't mind; </DIV><DIV>&nbsp;</DIV><DIV>Using both standard printing implementation + standard page setup dialog implementation, how can I get access to the header + footer customization so I can save/load them with the opened document ?</DIV><DIV>&nbsp;</DIV><DIV>Extra question: Is there also a way to "intercept" the header/footer at printing time in order to manage additional custom variables ?</DIV><DIV>&nbsp;</DIV><DIV>Thanks a lot!</DIV>]]>
   </description>
   <pubDate>Mon, 17 Aug 2009 17:42:36 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14913&amp;PID=52087&amp;title=add-header-footer-to-reportcontrolview-print#52087</guid>
  </item> 
  <item>
   <title><![CDATA[add header/footer to ReportControlview print ? : This is normal reaction - not...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14913&amp;PID=52020&amp;title=add-header-footer-to-reportcontrolview-print#52020</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 14913<br /><strong>Posted:</strong> 15 August 2009 at 2:22am<br /><br />This is normal reaction - not a problem - because you use Wysiwyg mode - this red marker (end of visual page) help you properly resize columns&nbsp;to fit in page <DIV>&nbsp;</DIV><DIV>You can use some handler (button, menu...) with code:</DIV><FONT size=2><P>GetReportCtrl().GetPaintManager()-&gt;SetColumnWidthWYSIWYG(!GetReportCtrl().GetPaintManager()-&gt;<FONT size=2>IsColumnWidthWYSIWYG()</FONT>);</P><P>GetReportCtrl().RedrawControl();</P><DIV></DIV><DIV>and this red marker disapear. Later&nbsp;you can call&nbsp;same handler&nbsp;again to switch back to WYSIWYG mode</DIV><DIV></FONT>&nbsp;</DIV>]]>
   </description>
   <pubDate>Sat, 15 Aug 2009 02:22:30 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14913&amp;PID=52020&amp;title=add-header-footer-to-reportcontrolview-print#52020</guid>
  </item> 
  <item>
   <title><![CDATA[add header/footer to ReportControlview print ? : One problem alreade seen in other...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14913&amp;PID=52017&amp;title=add-header-footer-to-reportcontrolview-print#52017</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=66">zaksoft</a><br /><strong>Subject:</strong> 14913<br /><strong>Posted:</strong> 15 August 2009 at 2:13am<br /><br />One problem alreade seen in other cases.<DIV>&nbsp;</DIV><DIV>1) Open exe</DIV><DIV>2) Click Help-&gt; Release Sort</DIV><DIV>3) Click Close</DIV><DIV>&nbsp;</DIV><DIV>On middle of header title "Column 8" there is a vertical 2..3 pixel red line.</DIV><DIV>&nbsp;</DIV><DIV><img src="https://forum.codejock.com/uploads/20090815_021307_cjrepline.jpg" border="0"></DIV><DIV>&nbsp;</DIV><DIV><DIV>Tested both on Vista 32 SP2 and XP 32 SP3 at different resolution</DIV><DIV>&nbsp;</DIV></DIV>]]>
   </description>
   <pubDate>Sat, 15 Aug 2009 02:13:59 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14913&amp;PID=52017&amp;title=add-header-footer-to-reportcontrolview-print#52017</guid>
  </item> 
  <item>
   <title><![CDATA[add header/footer to ReportControlview print ? : I modify sample - https://foru...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14913&amp;PID=52008&amp;title=add-header-footer-to-reportcontrolview-print#52008</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 14913<br /><strong>Posted:</strong> 14 August 2009 at 8:21pm<br /><br />I modify sample - <a href="https://forum.codejock.com/uploads/DemoVersi&#111;n/ReportPaneViewStatic.rar" target="_blank">https://forum.codejock.com/uploads/DemoVersion/ReportPaneViewStatic.rar</A><DIV>you can use toolbar printpreview button (before help) to launch std framework printpreview and menu - file - printpreview to launch CJ framework printpreview</DIV>]]>
   </description>
   <pubDate>Fri, 14 Aug 2009 20:21:39 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14913&amp;PID=52008&amp;title=add-header-footer-to-reportcontrolview-print#52008</guid>
  </item> 
  <item>
   <title><![CDATA[add header/footer to ReportControlview print ? : You rigth in term of totally updated...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14913&amp;PID=52005&amp;title=add-header-footer-to-reportcontrolview-print#52005</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 14913<br /><strong>Posted:</strong> 14 August 2009 at 5:05pm<br /><br /><DIV>You rigth in term of totally updated CXTPReportView class but it is not related to printpreview framework - </DIV><DIV>&nbsp;</DIV><DIV>I just use <FONT size=2>COMMANDBARS PrintPreview framework which do nothing with real printpreview code except toolbar, buttons,&nbsp;zooming - </DIV><DIV>&nbsp;</DIV><DIV>DoPrintPreview internally call my function CXTPReportView::OnFilePrintPreview() which do real work.</DIV><DIV>&nbsp;</DIV><DIV>If I compile withiout COMMANDBARS and use&nbsp;CXTPReportView::OnFilePrintPreview()) only - everything will be the same - </DIV><DIV>only use old microsoft printpreview toolbar with only 2 pager button (Next and Prev)</DIV><DIV>&nbsp;</DIV><DIV></FONT><FONT color=#0000ff size=2>void</FONT><FONT size=2> CReportPaneViewView::OnFilePrintPreview()&nbsp;{</DIV></FONT><FONT color=#0000ff size=2><P>#ifdef</FONT><FONT size=2> _XTP_INCLUDE_COMMANDBARS</P></FONT><FONT size=2><P>CPrintPreviewState* pState = </FONT><FONT color=#0000ff size=2>new</FONT><FONT size=2> CPrintPreviewState;</P><P></P></FONT><FONT size=2><P></P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> ( !DoPrintPreview( XTP_IDD_PREVIEW_DIALOGBAR, </FONT><FONT color=#0000ff size=2>this</FONT><FONT size=2>,</P><P>RUNTIME_CLASS( CXTPPreviewView ), pState )) { </FONT><FONT color=#0000ff size=2>delete</FONT><FONT size=2> pState; </FONT><FONT size=2>}</P></FONT><FONT color=#0000ff size=2><P>#else</P></FONT><FONT color=#808080 size=2><P>CXTPReportView::OnFilePrintPreview();</P></FONT><FONT color=#0000ff size=2><P>#endif</P></FONT><FONT size=2><P>}</P><DIV></DIV><P>This is source code - <a href="https://forum.codejock.com/uploads/DemoVersi&#111;n/PaneViewReportSource.rar" target="_blank">https://forum.codejock.com/uploads/DemoVersion/PaneViewReportSource.rar</A>&nbsp;- build yourself both variants and compare</P><P></FONT>&nbsp;</P>]]>
   </description>
   <pubDate>Fri, 14 Aug 2009 17:05:07 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14913&amp;PID=52005&amp;title=add-header-footer-to-reportcontrolview-print#52005</guid>
  </item> 
  <item>
   <title><![CDATA[add header/footer to ReportControlview print ? : I have one more concern when I...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14913&amp;PID=52004&amp;title=add-header-footer-to-reportcontrolview-print#52004</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4876">unknow</a><br /><strong>Subject:</strong> 14913<br /><strong>Posted:</strong> 14 August 2009 at 4:54pm<br /><br /><P>I have one more concern when I look at this great sample:</P><DIV>&nbsp;I see that the WHOLE printing code (including pagesetup options, paginate, header/footer customization...) has been re-done, compared to the "ReportSample" which uses the default built-in code.</DIV><DIV>&nbsp;</DIV><DIV>This "ReportPaneView" even replaces the printing preview toolbar with a new one <img src="http://forum.codejock.com/smileys/smiley1.gif" border="0"></DIV><DIV>&nbsp;</DIV><DIV>So I understand I shouldn't use the default code and get all from the ReportPaneView sample ? or is this code is about to be implemented as default for next codejock release ?</DIV><DIV>&nbsp;</DIV><DIV>Thankx!</DIV>]]>
   </description>
   <pubDate>Fri, 14 Aug 2009 16:54:47 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14913&amp;PID=52004&amp;title=add-header-footer-to-reportcontrolview-print#52004</guid>
  </item> 
  <item>
   <title><![CDATA[add header/footer to ReportControlview print ? :   XTPReportView.h, XTPDrawHelpers.h...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14913&amp;PID=51869&amp;title=add-header-footer-to-reportcontrolview-print#51869</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 14913<br /><strong>Posted:</strong> 11 August 2009 at 3:22pm<br /><br /><DIV></DIV><FONT color=#008000 size=2><DIV><FONT color=#008000 size=2><P>XTPReportView.h, </FONT>XTPDrawHelpers.h</P></DIV></FONT>]]>
   </description>
   <pubDate>Tue, 11 Aug 2009 15:22:34 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14913&amp;PID=51869&amp;title=add-header-footer-to-reportcontrolview-print#51869</guid>
  </item> 
 </channel>
</rss>