<?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 : How to query font used by ReportControl</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : How to query font used by ReportControl]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 01 May 2026 23:57:49 +0000</pubDate>
  <lastBuildDate>Mon, 12 Apr 2021 08:02:23 +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=24145</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[How to query font used by ReportControl : Sorry for the delay getting back...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24145&amp;PID=78083&amp;title=how-to-query-font-used-by-reportcontrol#78083</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 24145<br /><strong>Posted:</strong> 12 April 2021 at 8:02am<br /><br />Sorry for the delay getting back to you! Yes, after getting the PaintManager.TextFont into lo_Font object all the properties are set as expected (Name, Font, Bold, etc...). Not sure why you wouldn't be getting that information? Maybe there's another way to turn assign the pointer to the StdFont object?<br>]]>
   </description>
   <pubDate>Mon, 12 Apr 2021 08:02:23 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24145&amp;PID=78083&amp;title=how-to-query-font-used-by-reportcontrol#78083</guid>
  </item> 
  <item>
   <title><![CDATA[How to query font used by ReportControl : Yes, I can queryPaintManager.TextFont,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24145&amp;PID=78079&amp;title=how-to-query-font-used-by-reportcontrol#78079</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8886">wrecks</a><br /><strong>Subject:</strong> 24145<br /><strong>Posted:</strong> 04 April 2021 at 5:19pm<br /><br />Yes, I can query&nbsp;<span style=": rgb248, 248, 252;">PaintManager.TextFont, but if I use the pointer it returns to create an object, it does not have any properties.&nbsp;&nbsp;</span><div><span style=": rgb248, 248, 252;"><br></span></div><div><span style=": rgb248, 248, 252;">In your VB example, having created lo_Font, does it now have Name and Size properties?</span></div><div><span style=": rgb248, 248, 252;"><br></span></div>]]>
   </description>
   <pubDate>Sun, 04 Apr 2021 17:19:58 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24145&amp;PID=78079&amp;title=how-to-query-font-used-by-reportcontrol#78079</guid>
  </item> 
  <item>
   <title><![CDATA[How to query font used by ReportControl : You should also be able to get...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24145&amp;PID=78078&amp;title=how-to-query-font-used-by-reportcontrol#78078</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 24145<br /><strong>Posted:</strong> 04 April 2021 at 11:16am<br /><br /><div>You should also be able to <b>get</b> the PaintManager.TextFont as an StdFont.&nbsp;</div><div><br></div><div>In VB6 you can get the font like this:</div><div><br></div><div><table width="99%"><tr><td><pre class="BBcode"></div><div>Dim lo_Font As StdFont</div><div><br></div><div>Set lo_Font = Me.ReportControl1.PaintManager.TextFont&nbsp; ' NOTE use of the Set keyword to get the font - this is required in VB6 to distinguish between object returning properties and non-object returning properties<br></div><div></pre></td></tr></table></div><div><br></div><div>I know you are using APL but I'm not sure if there's a similar way to get an object from a property (though I think there must be?)<br></div>]]>
   </description>
   <pubDate>Sun, 04 Apr 2021 11:16:42 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24145&amp;PID=78078&amp;title=how-to-query-font-used-by-reportcontrol#78078</guid>
  </item> 
  <item>
   <title><![CDATA[How to query font used by ReportControl : How can I query the font that...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24145&amp;PID=78077&amp;title=how-to-query-font-used-by-reportcontrol#78077</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8886">wrecks</a><br /><strong>Subject:</strong> 24145<br /><strong>Posted:</strong> 31 March 2021 at 6:37pm<br /><br />How can I query the font that is being used by a ReportControl?&nbsp;&nbsp;<div><br></div><div>I know I can <i><b>set</b></i> the font by creating a StdFont object, setting its Name/Size/Weight and etc. properties, and then passing that font to PaintManager.TextFont.&nbsp;&nbsp;</div><div><br></div><div>But how can I find out whatever the <i><b>current</b></i> font is?&nbsp; (I like the font that RC is using -- I just want to know exactly what it is!)</div><div><br></div><div>What I really want to know is: how can I query the width (in pixels) of a text string when rendered in the current RC font?&nbsp; If I can get a handle to the font, I know how to measure text size from there.</div><div><br></div><div>I am using&nbsp;Codejock.ReportControl.18.4.0</div><div><br></div><div>Thanks in advance for any help on this.</div>]]>
   </description>
   <pubDate>Wed, 31 Mar 2021 18:37:02 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24145&amp;PID=78077&amp;title=how-to-query-font-used-by-reportcontrol#78077</guid>
  </item> 
 </channel>
</rss>