<?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 : Footer Rows doesn&#039;t honor BestFit</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : Footer Rows doesn&#039;t honor BestFit]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 04:42:47 +0000</pubDate>
  <lastBuildDate>Fri, 23 May 2008 10:07:43 +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=10725</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[Footer Rows doesn&#039;t honor BestFit : Hi,   With my sample it does...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10725&amp;PID=35717&amp;title=footer-rows-doesnt-honor-bestfit#35717</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 10725<br /><strong>Posted:</strong> 23 May 2008 at 10:07am<br /><br />Hi, <DIV>&nbsp;</DIV><DIV>With my sample it does not matter if <strong>xtpBestFitModeAllData</strong> or <strong>xtpBestFitModeVisibleData</strong> is set, it will <strong>always</strong> resize the long text and no matter where the column is and <strong>visible or not</strong>. </DIV><DIV>&nbsp;</DIV><DIV>Please add code&nbsp;that it won't work. Convince&nbsp;me that this doesn't work <img src="https://forum.codejock.com/smileys/smiley2.gif" border="0"></DIV><DIV>&nbsp;</DIV><DIV>(I added the code where I loop through the columns)</DIV><DIV><a href="https://forum.codejock.com/uploads/20080524_021103_TestColumns.zip" target="_blank">uploads/20080524_021103_TestColumns.zip</A></DIV>]]>
   </description>
   <pubDate>Fri, 23 May 2008 10:07:43 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10725&amp;PID=35717&amp;title=footer-rows-doesnt-honor-bestfit#35717</guid>
  </item> 
  <item>
   <title><![CDATA[Footer Rows doesn&#039;t honor BestFit : Hi Aaron  Yes, but if BestFitMode...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10725&amp;PID=35711&amp;title=footer-rows-doesnt-honor-bestfit#35711</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=841">Fabian</a><br /><strong>Subject:</strong> 10725<br /><strong>Posted:</strong> 23 May 2008 at 9:48am<br /><br />Hi Aaron<DIV>&nbsp;</DIV><DIV>Yes, but if BestFitMode is 0 or not taken into account only the width of visible cells are measured. So your sample works if you have long text in the first, visible column but not in the last, hidden&nbsp;row.</DIV><DIV>&nbsp;</DIV><DIV>Why it works from time to time with DoEvents - no idea. In V11 before BestFitMode was introduced I also used DoEvents AND .Poulate but sometimes it works sometimes not - depends on Windows repainting (sizing, pane sizing, overlaping windows...).</DIV><DIV>&nbsp;</DIV><DIV>But - thanks a lot, I hope Oleg have the time to examine this issue.</DIV>]]>
   </description>
   <pubDate>Fri, 23 May 2008 09:48:21 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10725&amp;PID=35711&amp;title=footer-rows-doesnt-honor-bestfit#35711</guid>
  </item> 
  <item>
   <title><![CDATA[Footer Rows doesn&#039;t honor BestFit : Hi,  Yes, I had to use DoEvents...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10725&amp;PID=35680&amp;title=footer-rows-doesnt-honor-bestfit#35680</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 10725<br /><strong>Posted:</strong> 23 May 2008 at 3:26am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>Yes, I had to use DoEvents otherwise it did't work. But it shows that <strong>all</strong> columns will be resized, also the <strong>FooterRows</strong>&nbsp;and if you think that it doesn't work all the time,&nbsp;<strong>show me</strong>.&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>You say and I quote:</DIV><DIV><U>I am shure that for the footer rows the BestFitMode was not taken into account...</U></DIV><DIV>&nbsp;</DIV><DIV>They have to be checked for the contents of the "cell" otherwise the columns wouldn't be resized, right? That we have to use DoEvents is another story...</DIV><DIV>&nbsp;</DIV><DIV>I will wait for a few days and I will post an issue regarding the BestFit method&nbsp;(<strong>giving Oleg the time to reply on this post <img src="https://forum.codejock.com/smileys/smiley2.gif" border="0"></strong>)&nbsp;</DIV>]]>
   </description>
   <pubDate>Fri, 23 May 2008 03:26:02 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10725&amp;PID=35680&amp;title=footer-rows-doesnt-honor-bestfit#35680</guid>
  </item> 
  <item>
   <title><![CDATA[Footer Rows doesn&#039;t honor BestFit : Hi Aaron  I had called the best...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10725&amp;PID=35675&amp;title=footer-rows-doesnt-honor-bestfit#35675</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=841">Fabian</a><br /><strong>Subject:</strong> 10725<br /><strong>Posted:</strong> 23 May 2008 at 1:52am<br /><br />Hi Aaron<DIV>&nbsp;</DIV><DIV>I had called the best fit method to column 3 and it won't work. </DIV><DIV>&nbsp;</DIV><DIV>Your sample simply works because you use DoEvents in the loop. This is an old trick for the same problem with BestFit before .BestFitMode was introduced. But it does not always work. I am shure that for the footer rows the BestFitMode was not taken into account...</DIV><DIV>&nbsp;</DIV><DIV>Thanks again</DIV>]]>
   </description>
   <pubDate>Fri, 23 May 2008 01:52:42 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10725&amp;PID=35675&amp;title=footer-rows-doesnt-honor-bestfit#35675</guid>
  </item> 
  <item>
   <title><![CDATA[Footer Rows doesn&#039;t honor BestFit : Hi,   If you set the long text...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10725&amp;PID=35634&amp;title=footer-rows-doesnt-honor-bestfit#35634</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 10725<br /><strong>Posted:</strong> 22 May 2008 at 12:09pm<br /><br />Hi, <DIV>&nbsp;</DIV><DIV>If you set the long text for the last column you have to set:</DIV><DIV>&nbsp;</DIV><DIV>wndReportControlData.Columns(3).BestFitMode = xtpBestFitModeAllData<BR>wndReportControlData.Columns(3).BestFit</DIV><DIV>&nbsp;</DIV><DIV>as well. I made the sample just to let you see it <strong>does</strong> work. </DIV><DIV>&nbsp;</DIV><DIV>change this in the sample:</DIV><DIV>&nbsp;</DIV><DIV><FONT color=#ff0000>Private Sub Command3_Click()<BR>&nbsp;&nbsp;&nbsp; Dim col As ReportColumn<BR>&nbsp;&nbsp;&nbsp; For Each col In wndReportControlData.Columns<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; col.BestFitMode = xtpBestFitModeAllData<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; col.BestFit<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DoEvents<BR>&nbsp;&nbsp;&nbsp; Next col<BR>End Sub</FONT></DIV><DIV>&nbsp;</DIV><DIV>Now all columns will call <strong>BestFit</strong> and not as in my first example with just the first column and if you set the longer text to another column it won't work <img src="https://forum.codejock.com/smileys/smiley2.gif" border="0"></DIV><DIV>&nbsp;</DIV><DIV>Change the above and see for yourself.</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Thu, 22 May 2008 12:09:52 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10725&amp;PID=35634&amp;title=footer-rows-doesnt-honor-bestfit#35634</guid>
  </item> 
  <item>
   <title><![CDATA[Footer Rows doesn&#039;t honor BestFit : Hi Aaron  Thanks for your sample....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10725&amp;PID=35619&amp;title=footer-rows-doesnt-honor-bestfit#35619</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=841">Fabian</a><br /><strong>Subject:</strong> 10725<br /><strong>Posted:</strong> 22 May 2008 at 10:20am<br /><br />Hi Aaron<DIV>&nbsp;</DIV><DIV>Thanks for your sample. It works because the first column with the long footer text was visible.</DIV><DIV>&nbsp;</DIV><DIV>But look: If you set the long footer text ''This text is longer...' to the last column and fill the report control. Make the last column small. Adjust the column with of the first column&nbsp;so the last column totally vanishes. Then press your bestfit button, the whole column wasn't resized. Set Column.BestFitMode=xtpBestFitModeAlldata and repeat. The last column honors all 'normal' rows but not the long footer text.</DIV><DIV>&nbsp;</DIV><DIV>So I&nbsp;came to the conclusion:&nbsp;BestFit doesn't honor BestFitMode=xtpBestFitModeAlldata </DIV>]]>
   </description>
   <pubDate>Thu, 22 May 2008 10:20:00 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10725&amp;PID=35619&amp;title=footer-rows-doesnt-honor-bestfit#35619</guid>
  </item> 
  <item>
   <title><![CDATA[Footer Rows doesn&#039;t honor BestFit : Hi,   Better check your code...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10725&amp;PID=35567&amp;title=footer-rows-doesnt-honor-bestfit#35567</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 10725<br /><strong>Posted:</strong> 21 May 2008 at 11:22pm<br /><br />Hi, <DIV>&nbsp;</DIV><DIV>Better check your code because columns <strong>do</strong> resize for footer rows also.</DIV><DIV>&nbsp;</DIV><DIV><a href="https://forum.codejock.com/uploads/20080521_232104_TestColumns.zip" target="_blank">uploads/20080521_232104_TestColumns.zip</A></DIV>]]>
   </description>
   <pubDate>Wed, 21 May 2008 23:22:02 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10725&amp;PID=35567&amp;title=footer-rows-doesnt-honor-bestfit#35567</guid>
  </item> 
  <item>
   <title><![CDATA[Footer Rows doesn&#039;t honor BestFit : Hi  I have sent 2 messages to...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10725&amp;PID=35544&amp;title=footer-rows-doesnt-honor-bestfit#35544</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=841">Fabian</a><br /><strong>Subject:</strong> 10725<br /><strong>Posted:</strong> 21 May 2008 at 10:10am<br /><br />Hi<DIV></DIV><DIV></DIV>I have sent 2 messages to issue track but got no answer (also no automated response?). So I ask forum:<DIV>&nbsp;</DIV><DIV>If I set BestFitMode to honor all column widths, shown or not, this works fine for 'normal' rows, but footer row sizes&nbsp;would not be hored for calculating the column sizes.</DIV><DIV>&nbsp;</DIV><DIV>Do I miss something?</DIV><DIV>&nbsp;</DIV><DIV>Thanks for help</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Wed, 21 May 2008 10:10:09 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10725&amp;PID=35544&amp;title=footer-rows-doesnt-honor-bestfit#35544</guid>
  </item> 
 </channel>
</rss>