<?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 : Multiline rows in Virtual mode</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : Multiline rows in Virtual mode]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 05 Jun 2026 20:35:14 +0000</pubDate>
  <lastBuildDate>Mon, 26 Jun 2006 06:25: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=4429</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[Multiline rows in Virtual mode : hello sserge  thank you for...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4429&amp;PID=13833&amp;title=multiline-rows-in-virtual-mode#13833</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2105">stiff upper lip</a><br /><strong>Subject:</strong> 4429<br /><strong>Posted:</strong> 26 June 2006 at 6:25am<br /><br />hello sserge<DIV>&nbsp;</DIV><DIV>thank you for the tip <IMG height=17 alt=Smile src="https://forum.codejock.com/smileys/smiley1.gif" width=17 align=absMiddle border="0">&nbsp;,&nbsp; i have replaced <FONT color=#cc3300 size=2>pItem-&gt;GetCaption(pColumn) </FONT></DIV><DIV><FONT color=#000000 size=2>with <FONT color=#990000>itemMetrics.strText</FONT> , then you have to add the following code to make it working , </FONT></DIV><DIV><FONT size=2>you have to add :</FONT></DIV><DIV><FONT size=2>&nbsp;</FONT></DIV><DIV><FONT size=2><FONT size=2>drawArgs.pColumn = pColumn; </FONT></FONT></DIV><DIV><FONT size=2>before you call :</FONT></DIV><DIV><FONT size=2>pRow-&gt;GetItemMetrics(&amp;drawArgs, &amp;itemMetrics);</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>now it working fine , thanks again</FONT></DIV><DIV><FONT size=2>&nbsp;</DIV></FONT>]]>
   </description>
   <pubDate>Mon, 26 Jun 2006 06:25:41 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4429&amp;PID=13833&amp;title=multiline-rows-in-virtual-mode#13833</guid>
  </item> 
  <item>
   <title><![CDATA[Multiline rows in Virtual mode : When you do use Virtual records,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4429&amp;PID=13828&amp;title=multiline-rows-in-virtual-mode#13828</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 4429<br /><strong>Posted:</strong> 25 June 2006 at 5:14pm<br /><br />When you do use Virtual records, do not forget that actual text for an item is set after calling <font size="2">GetItemMetrics(...)</font> method . So far, changing <font size="2"><font color="#cc3300">pItem-&gt;GetCaption(pColumn)</font></font> in this code to <font color="#990000">itemMetrics.strText</font> should help.<br><br>--<br>WBR,<br>Serge<br>]]>
   </description>
   <pubDate>Sun, 25 Jun 2006 17:14:21 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4429&amp;PID=13828&amp;title=multiline-rows-in-virtual-mode#13828</guid>
  </item> 
  <item>
   <title><![CDATA[Multiline rows in Virtual mode : I wanted to use the same CReportMultilinePaintManager...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4429&amp;PID=13720&amp;title=multiline-rows-in-virtual-mode#13720</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2105">stiff upper lip</a><br /><strong>Subject:</strong> 4429<br /><strong>Posted:</strong> 20 June 2006 at 4:50am<br /><br /><DIV>I wanted to use the same <FONT size=2>CReportMultilinePaintManager class</FONT>&nbsp;used in the reportcontrol sample , here is the code :</DIV><DIV>&nbsp;</DIV><DIV><FONT color=#0000ff size=2><P>int</FONT><FONT size=2> CReportMultilinePaintManager::GetRowHeight(CDC* pDC, CXTPReportRow* pRow)</P><P>{</P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (pRow-&gt;IsGroupRow() || !pRow-&gt;IsItemsVisible())</P><P></FONT><FONT color=#0000ff size=2>return</FONT><FONT size=2> CXTPReportPaintManager::GetRowHeight(pDC, pRow);</P><P>CXTPReportColumns* pColumns = pRow-&gt;GetControl()-&gt;GetColumns();</P><P></FONT><FONT color=#0000ff size=2>int</FONT><FONT size=2> nColumnCount = pColumns-&gt;GetCount();</P><P>XTP_REPORTRECORDITEM_DRAWARGS drawArgs;</P><P>drawArgs.pControl = pRow-&gt;GetControl();</P><P>drawArgs.pDC = pDC;</P><P>drawArgs.pRow = pRow;</P><P></FONT><FONT color=#0000ff size=2>int</FONT><FONT size=2> nHeight = 0;</P><P></FONT><FONT color=#0000ff size=2>for</FONT><FONT size=2> (</FONT><FONT color=#0000ff size=2>int</FONT><FONT size=2> nColumn = 0; nColumn &lt; nColumnCount; nColumn++)</P><P>{</P><P>CXTPReportColumn* pColumn = pColumns-&gt;GetAt(nColumn);</P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (pColumn &amp;&amp; pColumn-&gt;IsVisible())</P><P>{</P><P>CXTPReportRecordItem* pItem = pRow-&gt;GetRecord()-&gt;GetItem(pColumn);</P><P>drawArgs.pItem = pItem;</P><P></P><P>XTP_REPORTRECORDITEM_METRICS itemMetrics;</P><P>pRow-&gt;GetItemMetrics(&amp;drawArgs, &amp;itemMetrics);</P><P>CXTPFontDC fnt(pDC, itemMetrics.pFont);</P><P>CRect rcItem(0, 0, pColumn-&gt;GetWidth() - 4, 0);</P><P>pRow-&gt;ShiftTreeIndent(rcItem, pColumn);</P><P>pItem-&gt;GetCaptionRect(&amp;drawArgs, rcItem);</P><P>pDC-&gt;DrawText(<FONT color=#cc3300>pItem-&gt;GetCaption(pColumn), </FONT>rcItem, DT_WORDBREAK|DT_CALCRECT);</P><P>nHeight = max(nHeight, rcItem.Height());</P><P></P><P>}</P><P>}</P><P></P><P></FONT><FONT color=#0000ff size=2>return</FONT><FONT size=2> max(nHeight + 5, m_nRowHeight) + (IsGridVisible(FALSE)? 1: 0);</P><P>}</P><P>but when I added this class to my program , it seems that <FONT color=#cc3300>pItem-&gt;GetCaption(pColumn)&nbsp; </FONT><FONT color=#000000>always return an emptry string , and consequently GetRowHeight return 0 , </P><DIV>is there another way to access my CXTPReportRecordItem and retreive the item text ?</FONT></DIV></FONT></DIV>]]>
   </description>
   <pubDate>Tue, 20 Jun 2006 04:50:10 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4429&amp;PID=13720&amp;title=multiline-rows-in-virtual-mode#13720</guid>
  </item> 
  <item>
   <title><![CDATA[Multiline rows in Virtual mode : hi,please look into http://for...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4429&amp;PID=13692&amp;title=multiline-rows-in-virtual-mode#13692</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 4429<br /><strong>Posted:</strong> 17 June 2006 at 3:36pm<br /><br />hi,<br><br>please look into <a href="http://forum.codejock.com/forum_posts.asp?TID=4086" target="_blank">http://forum.codejock.com/forum_posts.asp?TID=4086</a><br><br>--<br>WBR,<br>Serge<br>]]>
   </description>
   <pubDate>Sat, 17 Jun 2006 15:36:44 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4429&amp;PID=13692&amp;title=multiline-rows-in-virtual-mode#13692</guid>
  </item> 
  <item>
   <title><![CDATA[Multiline rows in Virtual mode : hi  How I can use different...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4429&amp;PID=13691&amp;title=multiline-rows-in-virtual-mode#13691</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2105">stiff upper lip</a><br /><strong>Subject:</strong> 4429<br /><strong>Posted:</strong> 17 June 2006 at 10:02am<br /><br />hi<DIV>&nbsp;</DIV><DIV>How I can use different height for different rows in virtual mode , I use extreme report control in virtual mode to read data from access data base , I tried to do the same as report control sample , means , to create a new class&nbsp; <FONT size=2>CReportMultilinePaintManager&nbsp; , and override the <FONT size=2><P>CReportMultilinePaintManager::GetRowHeight( ....) function , but it wont work:( , <IMG height=17 alt=Cry src="http://forum.codejock.com/smileys/smiley19.gif" width=17 align=absMiddle border="0">&nbsp;, can you help me to get over this problem</P></FONT></FONT></DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Sat, 17 Jun 2006 10:02:50 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4429&amp;PID=13691&amp;title=multiline-rows-in-virtual-mode#13691</guid>
  </item> 
 </channel>
</rss>