<?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 : Resize last column + printing</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : Resize last column + printing]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 19 Apr 2026 00:15:10 +0000</pubDate>
  <lastBuildDate>Mon, 12 Apr 2010 16:36:08 +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=16517</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[Resize last column + printing : Sorry, that was the function I...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16517&amp;PID=58043&amp;title=resize-last-column-printing#58043</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 16517<br /><strong>Posted:</strong> 12 April 2010 at 4:36pm<br /><br />Sorry, that was the function I meant! And... it's buggy! I do believe the printing issue has to do with the drawing problems that appear when using this function.<DIV></DIV><DIV>&nbsp;</DIV><DIV>Try creating a support ticket. Maybe CJ will notice...</DIV>]]>
   </description>
   <pubDate>Mon, 12 Apr 2010 16:36:08 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16517&amp;PID=58043&amp;title=resize-last-column-printing#58043</guid>
  </item> 
  <item>
   <title><![CDATA[Resize last column + printing : BTW, it appears that in the v13.3.1...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16517&amp;PID=57970&amp;title=resize-last-column-printing#57970</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=669">markr</a><br /><strong>Subject:</strong> 16517<br /><strong>Posted:</strong> 07 April 2010 at 2:37pm<br /><br />BTW, it appears that in the v13.3.1 I can just call:<br><br>GetReportCtrl().GetReportHeader()-&gt;SetLastColumnExpand(TRUE, TRUE);<br><br>Which will implement an algorithm nearly identical to that in my original post.<br><br>But again, it still exhibits the printing problem that I outlined.<br>]]>
   </description>
   <pubDate>Wed, 07 Apr 2010 14:37:10 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16517&amp;PID=57970&amp;title=resize-last-column-printing#57970</guid>
  </item> 
  <item>
   <title><![CDATA[Resize last column + printing : &amp;gt; First of all, what you are...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16517&amp;PID=57969&amp;title=resize-last-column-printing#57969</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=669">markr</a><br /><strong>Subject:</strong> 16517<br /><strong>Posted:</strong> 07 April 2010 at 2:27pm<br /><br />&gt; First of all, what you are trying to do&nbsp;was implemented already. See <strong>SetAutoColumnSizing</strong><br><br>I'm aware of this function, but it does not appear to be relevant to the problem I outlined. For example, if I distill my function down to two simple lines:<br><br>GetReportCtrl().GetReportHeader()-&gt;SetAutoColumnSizing(FALSE);<br>GetReportCtrl().GetColumns()-&gt;GetLastVisibleColumn()-&gt;SetAutoSize(TRUE);<br><br>It effectively does nothing at this point - no columns are resized (including the last one). it appears to be necessary to use a combination of SetAutoColumnSizing(TRUE), then turn off column sizing for all but last column.<br><br>But then when I do this, I have the printing problem that I outlined originally.<br><br>]]>
   </description>
   <pubDate>Wed, 07 Apr 2010 14:27:06 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16517&amp;PID=57969&amp;title=resize-last-column-printing#57969</guid>
  </item> 
  <item>
   <title><![CDATA[Resize last column + printing : First of all, what you are trying...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16517&amp;PID=57964&amp;title=resize-last-column-printing#57964</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 16517<br /><strong>Posted:</strong> 07 April 2010 at 1:37pm<br /><br />First of all, what you are trying to do&nbsp;was implemented already. See <strong>SetAutoColumnSizing</strong> function here:&nbsp;<a href="http://forum.codejock.com/forum_posts.asp?TID=15075&amp;KW=last" target="_blank">http://forum.codejock.com/forum_posts.asp?TID=15075&amp;KW=last</A><DIV></DIV><DIV></DIV><DIV></DIV><DIV>&nbsp;</DIV><DIV>However, it never worked properly. So I'm still waiting for a fix, and I also believe I have pinpointed the bug you found:</DIV><DIV><EM>"If you move your last column to the left, you get strange behavior when resizing."</EM></DIV><DIV><EM></EM>&nbsp;</DIV><DIV>Sure sounds like the same bug.</DIV>]]>
   </description>
   <pubDate>Wed, 07 Apr 2010 13:37:27 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16517&amp;PID=57964&amp;title=resize-last-column-printing#57964</guid>
  </item> 
  <item>
   <title><![CDATA[Resize last column + printing : Anyone else experiencing a similar...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16517&amp;PID=57926&amp;title=resize-last-column-printing#57926</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=669">markr</a><br /><strong>Subject:</strong> 16517<br /><strong>Posted:</strong> 02 April 2010 at 9:55am<br /><br />Anyone else experiencing a similar problem? Seems like a bug to me, unless I'm just missing something. ]]>
   </description>
   <pubDate>Fri, 02 Apr 2010 09:55:56 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16517&amp;PID=57926&amp;title=resize-last-column-printing#57926</guid>
  </item> 
  <item>
   <title><![CDATA[Resize last column + printing :  Hello,I&amp;#039;m using the following...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16517&amp;PID=57793&amp;title=resize-last-column-printing#57793</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=669">markr</a><br /><strong>Subject:</strong> 16517<br /><strong>Posted:</strong> 25 March 2010 at 12:16pm<br /><br />Hello,<br><br>I'm using the following simple function to resize only the last report control column:<br><br><font face="Courier New, Courier, mono">void CMyReportView::InitColSizing()<br>{<br></font><div align="left"><font face="Courier New, Courier, mono">&nbsp;&nbsp;&nbsp; int nColumnsCount = GetReportCtrl().GetColumns()-&gt;GetCount(), nColumn;<br></font><font face="Courier New, Courier, mono">&nbsp;&nbsp;&nbsp; for (nColumn = 0; nColumn &lt; nColumnsCount; nColumn++)<br></font><font face="Courier New, Courier, mono">&nbsp;&nbsp;&nbsp; {<br></font><font face="Courier New, Courier, mono">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CXTPReportColumn* pColumn = GetReportCtrl().GetColumns()-&gt;GetAt(nColumn);<br></font><font face="Courier New, Courier, mono">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (pColumn &amp;&amp; pColumn-&gt;IsResizable())<br></font><font face="Courier New, Courier, mono">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pColumn-&gt;SetAutoSize(FALSE);<br></font><font face="Courier New, Courier, mono">&nbsp;&nbsp;&nbsp; }<br></font><font face="Courier New, Courier, mono">&nbsp;&nbsp;&nbsp; <br></font><font face="Courier New, Courier, mono">&nbsp;&nbsp;&nbsp; GetReportCtrl().GetColumns()-&gt;GetLastVisibleColumn()-&gt;SetAutoSize(TRUE);<br>}</font><br><br>Unfortunately, once I do this is seems to interfere with printing. Specifically, the last column stretches beyond the normal print border (this effect is also visible in print previews). Here's a screen shot of the problem:<br><br><img src="uploads/20100325_121543_print.gif" height="254" width="896" border="0"><br><br>If I don't adjust the column sizing, everything works as expected.<br><br>Anyone know how what I might be doing wrong here?<br><br><br></div>]]>
   </description>
   <pubDate>Thu, 25 Mar 2010 12:16:48 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16517&amp;PID=57793&amp;title=resize-last-column-printing#57793</guid>
  </item> 
 </channel>
</rss>