<?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 : Display JPEG pics in reportcontrol preview mode</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : Display JPEG pics in reportcontrol preview mode]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 19 Apr 2026 04:20:14 +0000</pubDate>
  <lastBuildDate>Tue, 19 Oct 2010 18:45: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=17381</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[Display JPEG pics in reportcontrol preview mode : Thanks for the hints ;)   Here&amp;#039;s...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17381&amp;PID=61021&amp;title=display-jpeg-pics-in-reportcontrol-preview-mode#61021</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4876">unknow</a><br /><strong>Subject:</strong> 17381<br /><strong>Posted:</strong> 19 October 2010 at 6:45pm<br /><br />Thanks for the hints ;) <DIV>&nbsp;</DIV><DIV>Here's what I'd like to achieve: </DIV><DIV>&nbsp;</DIV><DIV>1: Display a bmp/gif/jpeg/png loaded from disk within column/rows (each row different bitmap) of the reportcontrol, for example to insert a preview of the picture file within the report control</DIV><DIV>&nbsp;</DIV><DIV>2: load a bitmap from resources (used in the software as an ImageList) to display 32x32 pix icons instead of the small 16x16 from the ImageList.</DIV><DIV>&nbsp;</DIV><DIV>Is there additional code to modify (except for loading and converting the bitmap) ?</DIV><DIV>&nbsp;</DIV><DIV>thankx;</DIV>]]>
   </description>
   <pubDate>Tue, 19 Oct 2010 18:45:23 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17381&amp;PID=61021&amp;title=display-jpeg-pics-in-reportcontrol-preview-mode#61021</guid>
  </item> 
  <item>
   <title><![CDATA[Display JPEG pics in reportcontrol preview mode : I don&amp;#039;t know what you mean...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17381&amp;PID=60789&amp;title=display-jpeg-pics-in-reportcontrol-preview-mode#60789</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=313">Marco1</a><br /><strong>Subject:</strong> 17381<br /><strong>Posted:</strong> 11 October 2010 at 6:58am<br /><br />I don't know what you mean with "preview mode".<br>Drawing a JPEG in a report cell is not a big problem. Look at the CJ example "ReportControl.CustomDrawReport". In this example you see, how to custom draw a cell.<br><br>Then you create your own CXTPCustomDrawReportPaintManager and override <i>GetRowHeight </i>to return your desired row (picture) height.<br><br>To draw the bitmap, you create your own <i>CXTPReportRecordItem (</i><font><i>CReportRecordItemBitmap </i>here) </font>and override <i>OnDrawCaption</i>, do something (simplyfied) like this:<br><br><font face="Courier New, Courier, mono">void CReportRecordItemBitmap::OnDrawCaption(XTP_REPORTRECORDITEM_DRAWARGS* pDrawArgs, XTP_REPORTRECORDITEM_METRICS* pMetrics)<br>{<br>&nbsp; if (!(pDrawArgs &amp;&amp; pMetrics))<br>&nbsp;&nbsp;&nbsp; return;<br><br>&nbsp; // draw bitmap<br>&nbsp; CDC memDC;<br>&nbsp; memDC.CreateCompatibleDC(pDrawArgs-&gt;pDC);<br>&nbsp; CBitmap *pOldbmp = memDC.SelectObject(&amp;m_bitmap);<br>&nbsp; if (!m_bitmap.m_hObject) {<br>&nbsp;&nbsp;&nbsp; return;<br>&nbsp; }<br><br>&nbsp; BITMAP bi;<br>&nbsp; m_bitmap.GetBitmap(&amp;bi);<br><br>&nbsp; // ... calculate image size here<br><br>&nbsp; pDrawArgs-&gt;pDC-&gt;SetStretchBltMode(COLORONCOLOR);<br>&nbsp; pDrawArgs-&gt;pDC-&gt;StretchBlt(... , &amp;memDC, 0, 0, ..., ..., SRCCOPY);<br>&nbsp; memDC.SelectObject(pOldbmp);<br>}</font><br><br>That's it.<br><br>]]>
   </description>
   <pubDate>Mon, 11 Oct 2010 06:58:19 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17381&amp;PID=60789&amp;title=display-jpeg-pics-in-reportcontrol-preview-mode#60789</guid>
  </item> 
  <item>
   <title><![CDATA[Display JPEG pics in reportcontrol preview mode : Hi, justa little bump ; please...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17381&amp;PID=60788&amp;title=display-jpeg-pics-in-reportcontrol-preview-mode#60788</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4876">unknow</a><br /><strong>Subject:</strong> 17381<br /><strong>Posted:</strong> 11 October 2010 at 4:07am<br /><br /><P>Hi, just&nbsp;a little bump ; please no one has a hint on how to do this ? </P><DIV>Is it a possible enhancement request ?</DIV><DIV>&nbsp;</DIV><DIV>Thankx.</DIV>]]>
   </description>
   <pubDate>Mon, 11 Oct 2010 04:07:23 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17381&amp;PID=60788&amp;title=display-jpeg-pics-in-reportcontrol-preview-mode#60788</guid>
  </item> 
  <item>
   <title><![CDATA[Display JPEG pics in reportcontrol preview mode : Hi there;   I&amp;#039;m looking...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17381&amp;PID=60715&amp;title=display-jpeg-pics-in-reportcontrol-preview-mode#60715</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4876">unknow</a><br /><strong>Subject:</strong> 17381<br /><strong>Posted:</strong> 05 October 2010 at 6:56pm<br /><br />Hi there; <DIV>&nbsp;</DIV><DIV>I'm looking for a way to display a small jpeg picture for each report control row, either in regular mode but more in the preview mode.</DIV><DIV>&nbsp;</DIV><DIV>I'm not looking for an icon from resources, but a real jpeg picture loaded from disk; possibly a size large enough like 64x64 or 100x100;</DIV><DIV>&nbsp;</DIV><DIV>How can this be achieved ??</DIV><DIV>&nbsp;</DIV><DIV>Thanks;)</DIV>]]>
   </description>
   <pubDate>Tue, 05 Oct 2010 18:56:00 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17381&amp;PID=60715&amp;title=display-jpeg-pics-in-reportcontrol-preview-mode#60715</guid>
  </item> 
 </channel>
</rss>