<?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 : ReportControl Default Font</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : ReportControl Default Font]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 04 Apr 2026 05:46:39 +0000</pubDate>
  <lastBuildDate>Wed, 02 Dec 2015 08:51:08 +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=22798</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[ReportControl Default Font : Hello,See using XTP_REPORTRECORDITEM_METRICS::pFont...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22798&amp;PID=74161&amp;title=reportcontrol-default-font#74161</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8730">olebed</a><br /><strong>Subject:</strong> 22798<br /><strong>Posted:</strong> 02 December 2015 at 8:51am<br /><br />Hello,<br>See using &nbsp;XTP_REPORTRECORDITEM_METRICS::pFont &nbsp;in &nbsp;CXTPReportRow::GetItemMetrics <table width="99%"><tr><td><pre class="BBcode">pItemMetrics-&gt;pFont            = &amp;pPaintManager-&gt;m_fontText;</pre></td></tr></table> CXTPReportPaintManager::GetTextFont() the same<br><br>then in&nbsp; CXTPReportRow::GetItemMetrics -&gt; CXTPReportRecordItem::GetItemMetrics <table width="99%"><tr><td><pre class="BBcode">pDrawArgs-&gt;pItem-&gt;GetItemMetrics(pDrawArgs, pItemMetrics);</pre></td></tr></table> pItemMetrics-&gt;pFont&nbsp;can be changed to&nbsp;custom font from CXTPReportRecordItem::GetFont&nbsp;<br><br>so you can use next code to get font of ReportRecordItemText <table width="99%"><tr><td><pre class="BBcode">CFont* SomeClass::GetFont(CXTPReportRecordItemText* pItem)<br>{<br>	if (pItem)<br>	{<br>		if(pItem-&gt;GetFont())<br>			return pItem-&gt;GetFont();<br>		else if (pItem-&gt;IsBold())<br>			return GetReportControl-&gt;GetPaintManager()-&gt;m_fontBoldText;<br>		else<br>			return GetReportControl-&gt;GetPaintManager()-&gt;GetTextFont();<br>	}<br>	return NULL;<br>}</pre></td></tr></table><br>Also note that item's font can be changed on fly when XTP_NM_REPORT_GETITEMMETRICS notification is handled.<br><br>Regards,<br>&nbsp;Oleksandr Lebed<br>]]>
   </description>
   <pubDate>Wed, 02 Dec 2015 08:51:08 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22798&amp;PID=74161&amp;title=reportcontrol-default-font#74161</guid>
  </item> 
  <item>
   <title><![CDATA[ReportControl Default Font : Hello.I want to know ReportControl&amp;#039;s...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22798&amp;PID=74136&amp;title=reportcontrol-default-font#74136</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8646">evamation</a><br /><strong>Subject:</strong> 22798<br /><strong>Posted:</strong> 25 November 2015 at 6:29am<br /><br />Hello.<br />I want to know ReportControl's default font information.<br />for example, if we add item CXTPReportRecordItemText, we can see the text having some font attribute.<br /><br />How can I get the font information?]]>
   </description>
   <pubDate>Wed, 25 Nov 2015 06:29:26 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22798&amp;PID=74136&amp;title=reportcontrol-default-font#74136</guid>
  </item> 
 </channel>
</rss>