<?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 : Caption Alignment</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : Caption Alignment]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 19 Apr 2026 13:45:10 +0000</pubDate>
  <lastBuildDate>Fri, 17 Sep 2010 05:26:41 +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=17250</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[Caption Alignment : Hi Albert,  I agree, columnheader...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17250&amp;PID=60256&amp;title=caption-alignment#60256</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 17250<br /><strong>Posted:</strong> 17 September 2010 at 5:26am<br /><br />Hi Albert,<DIV>&nbsp;</DIV><DIV>I agree, columnheader management is a bit messy. It's not working as should and if you want to create such columnheader like you want, it isn't possible...</DIV><DIV>&nbsp;</DIV><DIV>To SuperMario: can you please look at this to?</DIV><DIV>&nbsp;</DIV><DIV>Thanks a lot in advance</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Fri, 17 Sep 2010 05:26:41 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17250&amp;PID=60256&amp;title=caption-alignment#60256</guid>
  </item> 
  <item>
   <title><![CDATA[Caption Alignment : Using this code:   With ReportControl...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17250&amp;PID=60206&amp;title=caption-alignment#60206</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2720">Albert1</a><br /><strong>Subject:</strong> 17250<br /><strong>Posted:</strong> 15 September 2010 at 9:46am<br /><br />Using this code:<DIV><table width="99%"><tr><td><pre class="BBcode">&nbsp;&nbsp;&nbsp; With ReportControl<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .PaintManager.FixedRowHeight = False<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; With .Columns.Add(0, "RRRRR" &amp; vbNewLine &amp; "rrrrr", 100, True)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <strong>.HeaderAlignment = xtpAlignmentVCenter + xtpAlignmentCenter + xtpAlignmentWordBreak</strong><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End With<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Populate<BR>&nbsp;&nbsp;&nbsp; End With<BR></pre></td></tr></table></DIV><DIV>&nbsp;</DIV><DIV>I get this result:</DIV><DIV>&nbsp;</DIV><DIV><img src="http://forum.codejock.com/uploads/20100915_093121_rep-3.jpg" border="0"></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>The second row of the caption is not correctly aligned. To reach the correct alignment I need to use markup:</DIV><DIV>&nbsp;</DIV><DIV><table width="99%"><tr><td><pre class="BBcode"></DIV><DIV>&nbsp;&nbsp;&nbsp; With&nbsp;ReportControl<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .EnableMarkup = True<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; With .PaintManager<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; With .HeaderHeightFormula<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Multiplier = 6<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Constant = 0<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Divisor = 2<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End With<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .RefreshMetrics<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End With<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; With .Columns.Add(0, "", 100, True)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Caption = "&lt;TextBlock TextWrapping='Wrap' TextAlignment='Center' VerticalAlignment='Center'&gt;" &amp; "RRRRR&lt;LineBreak/&gt;rrrrr" &amp; "&lt;/TextBlock&gt;"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End With<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Populate<BR>&nbsp;&nbsp;&nbsp; End With<BR></pre></td></tr></table></DIV><DIV>&nbsp;</DIV><DIV>By using markup I can get what I desire:</DIV><DIV>&nbsp;</DIV><DIV><img src="http://forum.codejock.com/uploads/20100915_093515_rep-4.jpg" border="0"></DIV><DIV>&nbsp;</DIV><DIV>This way I need to <strong>setup in advance the headerheight</strong> (I did not find the header-markup-autosize. If the user uses different chars, what should I do?)</DIV><DIV>&nbsp;</DIV><DIV>Is there a way to center align the caption WITHOUT use markup?</DIV><DIV>&nbsp;</DIV><DIV>Thank you</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Wed, 15 Sep 2010 09:46:05 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17250&amp;PID=60206&amp;title=caption-alignment#60206</guid>
  </item> 
 </channel>
</rss>