<?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 : Problem: Markup + FontSize</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : Problem: Markup + FontSize]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 14 May 2026 17:14:51 +0000</pubDate>
  <lastBuildDate>Thu, 08 Sep 2011 06:36: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=18920</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[Problem: Markup + FontSize :  This code will lead to wrong...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18920&amp;PID=66207&amp;title=problem-markup-fontsize#66207</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2720">Albert1</a><br /><strong>Subject:</strong> 18920<br /><strong>Posted:</strong> 08 September 2011 at 6:36am<br /><br /><DIV></DIV><DIV>This code will lead to wrong column caption font:</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, ScaleHeight<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .EnableMarkup = True<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; With .PaintManager<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .CaptionFont.Name = "Verdana"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .CaptionFont.Size = 14<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End With<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; With .Columns.Add(0, "", 100, False)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Caption = "&lt;TextBlock TextWrapping='Wrap' TextAlignment='left' VerticalAlignment='Center' FontFamily='Verdana'&gt;One&lt;/TextBlock&gt;"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End With<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; With .Columns.Add(0, "", 100, False)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Caption = "&lt;TextBlock TextWrapping='Wrap' TextAlignment='left' VerticalAlignment='Center' FontFamily='Verdana'&gt;Two&lt;/TextBlock&gt;"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End With<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-2.jpg" height="267" width="533" border="0" /></DIV><DIV>&nbsp;</DIV><DIV>It should render the same:&nbsp;either both 8pt or both 14pt ;)</DIV><DIV>&nbsp;</DIV><DIV>To get the correct font rendering I have to&nbsp;set the fontSize in the markup:</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, ScaleHeight<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .EnableMarkup = True<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; With .Columns.Add(0, "", 100, False)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Caption = "&lt;TextBlock TextWrapping='Wrap' TextAlignment='left' VerticalAlignment='Center' FontFamily='Verdana' FontSize='14'&gt;One&lt;/TextBlock&gt;"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End With<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; With .Columns.Add(0, "", 100, False)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Caption = "&lt;TextBlock TextWrapping='Wrap' TextAlignment='left' VerticalAlignment='Center' FontFamily='Verdana' FontSize='14'&gt;Two&lt;/TextBlock&gt;"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End With<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-2.jpg" height="267" width="533" border="0" /></DIV><DIV>&nbsp;</DIV><DIV>still, RC version 13 or 15 have the same behavior (-:</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Thu, 08 Sep 2011 06:36:43 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18920&amp;PID=66207&amp;title=problem-markup-fontsize#66207</guid>
  </item> 
 </channel>
</rss>