<?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] AutocolumnSizing</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : [SOLVED] AutocolumnSizing]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 17:44:01 +0000</pubDate>
  <lastBuildDate>Wed, 14 Sep 2011 11:59:19 +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=18919</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] AutocolumnSizing :    jpbro wrote:I might be wrong,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18919&amp;PID=66293&amp;title=solved-autocolumnsizing#66293</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1755">ABuenger</a><br /><strong>Subject:</strong> 18919<br /><strong>Posted:</strong> 14 September 2011 at 11:59am<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by jpbro" alt="Originally posted by jpbro" style="vertical-align: text-bottom;" /> <strong>jpbro wrote:</strong><br /><br />I might be wrong, but my understanding of the Column.AutoSize property is that it is only valid if the Report.AutoColumnSizing = True. Basically, you can exempt certain columns from the auto column sizing feature by setting the AutoSize property to False<br><br>If AutoColumnSizing = False, then the AutoSize property of each column is ignored, since no auto-sizing will be taking place.<br></td></tr></table><br><br>This is correct. Maybe the help isn't clear enough here.<br><br>]]>
   </description>
   <pubDate>Wed, 14 Sep 2011 11:59:19 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18919&amp;PID=66293&amp;title=solved-autocolumnsizing#66293</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED] AutocolumnSizing : I might be wrong, but my understanding...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18919&amp;PID=66287&amp;title=solved-autocolumnsizing#66287</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 18919<br /><strong>Posted:</strong> 14 September 2011 at 7:13am<br /><br />I might be wrong, but my understanding of the Column.AutoSize property is that it is only valid if the Report.AutoColumnSizing = True. Basically, you can exempt certain columns from the auto column sizing feature by setting the AutoSize property to False<br><br>If AutoColumnSizing = False, then the AutoSize property of each column is ignored, since no auto-sizing will be taking place.<br>]]>
   </description>
   <pubDate>Wed, 14 Sep 2011 07:13:09 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18919&amp;PID=66287&amp;title=solved-autocolumnsizing#66287</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED] AutocolumnSizing :   ABuenger wrote:Hi,everything...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18919&amp;PID=66285&amp;title=solved-autocolumnsizing#66285</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2720">Albert1</a><br /><strong>Subject:</strong> 18919<br /><strong>Posted:</strong> 14 September 2011 at 2:58am<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by ABuenger" alt="Originally posted by ABuenger" style="vertical-align: text-bottom;" /> <strong>ABuenger wrote:</strong><br /><br />Hi,<BR>everything is correct here.</td></tr></table> <DIV></DIV><DIV></DIV>To reply without reading the original post&nbsp;causes a waste of time for all.<DIV>&nbsp;</DIV><DIV>From the CJ's help:</DIV><DIV>&nbsp;</DIV><DIV><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by CJ" alt="Originally posted by CJ" style="vertical-align: text-bottom;" /> <strong>CJ wrote:</strong><br /><br /></DIV><DIV><DIV><strong>AutoColumnSizing</strong> (ReportControl)</DIV><DIV>If True, all columns are sized to fill the entire width of the ReportControl.&nbsp; When the ReportControl is resized, the Columns will automatically be resized to fit the new size of the RepotControl.</DIV><DIV>&nbsp;</DIV><DIV>If False, the columns will use the width they were assigned when they were created, or whatever value is stored in the columns width property.&nbsp;&#091;cut&#093;</DIV><DIV>&nbsp;<BR><U><FONT color=#ff0000>You can&nbsp;<strong>ALSO</strong> set each columns AutoSize property manually</FONT></U>.</DIV><DIV>&nbsp;</DIV></DIV><DIV><FONT color=#000000><strong>AutoSize Property</strong> (ReportControl.Column):</FONT></DIV><DIV><FONT color=#000000>If TRUE,&nbsp;the width of the column&nbsp;is automatically resized when the&nbsp;</FONT><FONT color=#000000>ReportControl's client area is resized by the user. If&nbsp;</FONT><FONT color=#000000>FALSE, the column keeps its initial size that was specified&nbsp;when the column was created.</FONT><FONT color=#000000></DIV></FONT><DIV>NOTE:&nbsp; When a column is added, the Resizable parameter is used to set the value for BOTH the Resizable and AutoSize property.&nbsp; <U>If these properties will have a different value, then you will have to change the required value after the column has been added</U>.</DIV><DIV></td></tr></table></DIV><DIV>&nbsp;</DIV><DIV>Well, in the first example I set the AutoColumnSizing to False (I wish the default is NO AutoSize) but I set <U>manually</U> AutoSize property&nbsp;to the Column (why not?) but the result is no autosize at all.</DIV><DIV>In the second example I removed the reference to the AutoColumnSizing property (at RC level): all works fine.</DIV><DIV>&nbsp;</DIV><DIV><FONT color=#ff0000>THIS IS A BUG!!!</FONT></DIV><DIV>Note: Or CodeJock should append ANOTHER (!!!) note in the help to advice "you cannot use BOTH AutoColumnSizing at ReportControl level and AutoSize at ReportColumn level" ...</DIV><DIV>&nbsp;</DIV><DIV>cu</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Wed, 14 Sep 2011 02:58:23 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18919&amp;PID=66285&amp;title=solved-autocolumnsizing#66285</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED] AutocolumnSizing : Hi,everything is correct here....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18919&amp;PID=66284&amp;title=solved-autocolumnsizing#66284</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1755">ABuenger</a><br /><strong>Subject:</strong> 18919<br /><strong>Posted:</strong> 14 September 2011 at 1:01am<br /><br />Hi,<br><br>everything is correct here. In the first case you've set AutoColumnSizing = False, therefore the columns are not automatically sized to match the report width.<br><br>In the second case AutoColumnSizing is True as well as AutoSize for the second column, therefore it gets resized.<br><br>Andre<br><br>]]>
   </description>
   <pubDate>Wed, 14 Sep 2011 01:01:03 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18919&amp;PID=66284&amp;title=solved-autocolumnsizing#66284</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED] AutocolumnSizing :  The following code will lead...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18919&amp;PID=66206&amp;title=solved-autocolumnsizing#66206</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2720">Albert1</a><br /><strong>Subject:</strong> 18919<br /><strong>Posted:</strong> 08 September 2011 at 6:04am<br /><br /><div>The following code will lead to this result (wrong column width):</div><div>&nbsp;</div><div><table width="99%"><tr><td><pre class="BBcode"></div><div>Private Sub Form_Load()<br>&nbsp;&nbsp;&nbsp; Width = 8000<br>&nbsp;&nbsp;&nbsp; Height = 4000<br>&nbsp;&nbsp;&nbsp; With ReportControl1<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Move 0, 0, ScaleWidth / 2, ScaleHeight<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .AllowColumnResize = True<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .AutoColumnSizing = False<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; With .Columns.Add(0, "A", 100, False)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Resizable = True<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .AutoSize = False<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End With<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; With .Columns.Add(0, "B", 100, False)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Resizable = True<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .AutoSize = True<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End With<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Width = ScaleWidth<br>&nbsp;&nbsp;&nbsp; End With<br>End Sub</div><div></pre></td></tr></table></div><div>&nbsp;</div><div><img src="http://forum.codejock.com/uploads/2720/wr&#111;ng-1.jpg" height="267" width="533" border="0" /></div><div>&nbsp;</div><div>&nbsp;</div><div><div>The following code will lead to the desired layout (removed the&nbsp;AutoColumnSizing statement)</div></div><div><table width="99%"><tr><td><pre class="BBcode"></div><div>Private Sub Form_Load()<br>&nbsp;&nbsp;&nbsp; Width = 8000<br>&nbsp;&nbsp;&nbsp; Height = 4000<br>&nbsp;&nbsp;&nbsp; With ReportControl1<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Move 0, 0, ScaleWidth / 2, ScaleHeight<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .AllowColumnResize = True<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; With .Columns.Add(0, "A", 100, False)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Resizable = True<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .AutoSize = False<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End With<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; With .Columns.Add(0, "B", 100, False)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Resizable = True<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .AutoSize = True<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End With<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Width = ScaleWidth<br>&nbsp;&nbsp;&nbsp; End With<br>End Sub</div><div></pre></td></tr></table></div><div>&nbsp;</div><div><img src="http://forum.codejock.com/uploads/2720/right-1.jpg" height="267" width="533" border="0" /></div><div>&nbsp;</div><div>How am I wrong (RC version 15)</div>]]>
   </description>
   <pubDate>Thu, 08 Sep 2011 06:04:02 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18919&amp;PID=66206&amp;title=solved-autocolumnsizing#66206</guid>
  </item> 
 </channel>
</rss>