<?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 : Multiple lines for 1 logical row</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : Multiple lines for 1 logical row]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 17 Apr 2026 23:51:09 +0000</pubDate>
  <lastBuildDate>Thu, 12 Apr 2007 20:49:39 +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=6842</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[Multiple lines for 1 logical row : Thanks John! ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6842&amp;PID=21897&amp;title=multiple-lines-for-1-logical-row#21897</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2922">mungerer</a><br /><strong>Subject:</strong> 6842<br /><strong>Posted:</strong> 12 April 2007 at 8:49pm<br /><br />Thanks John!]]>
   </description>
   <pubDate>Thu, 12 Apr 2007 20:49:39 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6842&amp;PID=21897&amp;title=multiple-lines-for-1-logical-row#21897</guid>
  </item> 
  <item>
   <title><![CDATA[Multiple lines for 1 logical row : You&amp;#039;ll need a custom paint...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6842&amp;PID=21894&amp;title=multiple-lines-for-1-logical-row#21894</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2321">JohnCrenshaw</a><br /><strong>Subject:</strong> 6842<br /><strong>Posted:</strong> 12 April 2007 at 7:25pm<br /><br />You'll need a custom paint manager, and custom items in your record.<DIV>&nbsp;</DIV><DIV>Paint manager is so you can do something like this:</DIV><DIV><table width="99%"><tr><td><pre class="BBcode">class CMyReportPaintManager : public CXTPReportPaintManager<BR>{<BR>public:<BR>&nbsp;&nbsp; CMyReportPaintManager() {}<BR>&nbsp;&nbsp; ~CMyReportPaintManager() {}</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp; virtual int GetRowHeight(CDC* pDC, CXTPReportRow* pRow)<BR>&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (HasMultirowItems(pRow))<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ...Calculate the height of the tallest item in the record...;</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return nCalculatedHeight<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return CXTPReportPaintManager::GetRowHeight(pDC, pRow);<BR>&nbsp;&nbsp; }<BR>&nbsp;&nbsp; virtual int GetRowHeight(CDC* pDC, CXTPReportRow* pRow, int nTotalWidth)<BR>&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (HasMultirowItems(pRow))<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ...Calculate the height of the tallest item in the record...;<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return nCalculatedHeight<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return CXTPReportPaintManager::GetRowHeight(pDC, pRow, nTotalWidth);<BR>&nbsp;&nbsp; }</DIV></DIV><DIV>};<BR></pre></td></tr></table></DIV><DIV>&nbsp;</DIV><DIV>The custom items will draw themselves</DIV><DIV>&nbsp;</DIV><DIV><table width="99%"><tr><td><pre class="BBcode">class CMyRecordItem : public CXTPReportRecordItemText<BR>{<BR>&nbsp;&nbsp; DECLARE_DYNAMIC(CSidebarRecordItem);<BR>public:<BR>&nbsp;&nbsp; CMyRecordItem(LPCTSTR sz) : CXTPReportRecordItemText(sz) {}<BR>&nbsp;&nbsp; ~CMyRecordItem() {}</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp; virtual int Draw(XTP_REPORTRECORDITEM_DRAWARGS* pDrawArgs)</DIV><DIV>&nbsp;&nbsp; {</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // See the draw code in XTPReportRecordItem.cpp line 295</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // this code will provide a base for the rest of this</DIV><DIV>&nbsp;&nbsp; }<BR>};</pre></td></tr></table></DIV><DIV>&nbsp;</DIV><DIV>That's a general direction for you anyway. There might be a better angle on this (for example, you might get the measuring to happen automatically just by overriding some stuff in the item) but that should get you started.</DIV>]]>
   </description>
   <pubDate>Thu, 12 Apr 2007 19:25:08 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6842&amp;PID=21894&amp;title=multiple-lines-for-1-logical-row#21894</guid>
  </item> 
  <item>
   <title><![CDATA[Multiple lines for 1 logical row : Hi-  I know that you can wrap...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6842&amp;PID=21855&amp;title=multiple-lines-for-1-logical-row#21855</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2922">mungerer</a><br /><strong>Subject:</strong> 6842<br /><strong>Posted:</strong> 11 April 2007 at 3:59pm<br /><br />Hi-<DIV>&nbsp;</DIV><DIV>I know that you can wrap text using <FONT size=2>DT_WORDBREAK, but is it possible to always show some of a rows column data underneath other column data?</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>For example:</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>---------------------------------------------</FONT></DIV><DIV><FONT size=2>ROW1&nbsp;&nbsp;&nbsp; Date1 Time1</FONT></DIV><DIV><FONT size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Subject1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Attachment1</FONT></DIV><DIV><DIV><FONT size=2>---------------------------------------------</FONT></DIV><DIV><DIV><FONT size=2>ROW2&nbsp;&nbsp;&nbsp; Date2 Time2</FONT></DIV><DIV><FONT size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Subject2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Attachment2</FONT></DIV><DIV><DIV><FONT size=2>---------------------------------------------</FONT></DIV><DIV><DIV><DIV><FONT size=2>ROW3&nbsp;&nbsp;&nbsp; Date3 Time3</FONT></DIV><DIV><FONT size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Subject3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Attachment3</FONT></DIV><DIV><DIV><FONT size=2>---------------------------------------------</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>... etc?&nbsp; It doesn't look like the control handles this situation out of the box, but what exactly needs to be customized to accomplish this effect?</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>Thanks,</FONT></DIV><DIV><FONT size=2>-Matt</FONT></DIV></DIV></DIV></DIV></DIV></DIV></DIV>]]>
   </description>
   <pubDate>Wed, 11 Apr 2007 15:59:03 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6842&amp;PID=21855&amp;title=multiple-lines-for-1-logical-row#21855</guid>
  </item> 
 </channel>
</rss>