<?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 : Add Icon to ReportRecordItem</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : Add Icon to ReportRecordItem]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 15 May 2026 20:14:05 +0000</pubDate>
  <lastBuildDate>Fri, 08 Jun 2007 14:53:26 +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=7328</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[Add Icon to ReportRecordItem : Cool. I never even thought of...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7328&amp;PID=23545&amp;title=add-icon-to-reportrecorditem#23545</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1790">jcollier</a><br /><strong>Subject:</strong> 7328<br /><strong>Posted:</strong> 08 June 2007 at 2:53pm<br /><br />Cool.&nbsp; I never even thought of that.&nbsp; I might have to try it also.<br><br>Thanks!<br>]]>
   </description>
   <pubDate>Fri, 08 Jun 2007 14:53:26 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7328&amp;PID=23545&amp;title=add-icon-to-reportrecorditem#23545</guid>
  </item> 
  <item>
   <title><![CDATA[Add Icon to ReportRecordItem : I discovered a very easy, succinct...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7328&amp;PID=23544&amp;title=add-icon-to-reportrecorditem#23544</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1549">Shawshank</a><br /><strong>Subject:</strong> 7328<br /><strong>Posted:</strong> 08 June 2007 at 2:51pm<br /><br />I discovered a very easy, succinct solution. Instead of adding the icons to the ImageManager or a MS ImageList control I instead added them to the Icon collection of the ReportControl itself. This had the benefit of allowing me to add large icons and then have them scaled down to 16x16 size when assigned to a ReportRepordItem.<DIV>&nbsp;</DIV><DIV>Shawshank</DIV>]]>
   </description>
   <pubDate>Fri, 08 Jun 2007 14:51:42 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7328&amp;PID=23544&amp;title=add-icon-to-reportrecorditem#23544</guid>
  </item> 
  <item>
   <title><![CDATA[Add Icon to ReportRecordItem : Yes, my icon is larger than 16x16....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7328&amp;PID=23541&amp;title=add-icon-to-reportrecorditem#23541</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1549">Shawshank</a><br /><strong>Subject:</strong> 7328<br /><strong>Posted:</strong> 08 June 2007 at 1:14pm<br /><br />Yes, my icon is larger than 16x16. Does this then mean that the CommandBarControl can scale an icon down and the ReportControl cannot?<DIV>&nbsp;</DIV><DIV>Shawshank</DIV>]]>
   </description>
   <pubDate>Fri, 08 Jun 2007 13:14:47 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7328&amp;PID=23541&amp;title=add-icon-to-reportrecorditem#23541</guid>
  </item> 
  <item>
   <title><![CDATA[Add Icon to ReportRecordItem : Hm. Is your icon 16x16 or larger?...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7328&amp;PID=23539&amp;title=add-icon-to-reportrecorditem#23539</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1790">jcollier</a><br /><strong>Subject:</strong> 7328<br /><strong>Posted:</strong> 08 June 2007 at 1:02pm<br /><br />Hm.&nbsp; Is your icon 16x16 or larger?&nbsp; Mine are 16x16<br><br>My column is set up as follows:<br><br>Set Column = rpt.Columns.Add(COL_DELETESTEP, "", 3, True)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Column.Editable = True<br><br>Then I fill and populate the report:<br><br>Set Item = Record.AddItem("")<br>Item.Icon = ID_DELETESTEP<br>rpt.populate<br>]]>
   </description>
   <pubDate>Fri, 08 Jun 2007 13:02:04 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7328&amp;PID=23539&amp;title=add-icon-to-reportrecorditem#23539</guid>
  </item> 
  <item>
   <title><![CDATA[Add Icon to ReportRecordItem : I have tried doing it both ways;...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7328&amp;PID=23538&amp;title=add-icon-to-reportrecorditem#23538</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1549">Shawshank</a><br /><strong>Subject:</strong> 7328<br /><strong>Posted:</strong> 08 June 2007 at 12:56pm<br /><br />I have tried doing it both ways; with the Set statement and without. In both cases I do not have the icon showing in the ReportControl. It does, however, work with the CommandBarControl in either case.<DIV>&nbsp;</DIV><DIV>Also, I have tried adding the icon to the ImageManager before assigning the ImageManager and after assignment.</DIV><DIV>&nbsp;</DIV><DIV>Shawshank</DIV>]]>
   </description>
   <pubDate>Fri, 08 Jun 2007 12:56:11 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7328&amp;PID=23538&amp;title=add-icon-to-reportrecorditem#23538</guid>
  </item> 
  <item>
   <title><![CDATA[Add Icon to ReportRecordItem : I am doing this also with success....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7328&amp;PID=23536&amp;title=add-icon-to-reportrecorditem#23536</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1790">jcollier</a><br /><strong>Subject:</strong> 7328<br /><strong>Posted:</strong> 08 June 2007 at 12:05pm<br /><br />I am doing this also with success.&nbsp; With the exception of the fact that I am adding the images to the ImageManager at design time I only have the following two differences:<br><br>Instead of:<br><br>Set Me.ReportControl1.Icons = Me.ImageManager1.Icons<br><br>Try:<br><br>Me.ReportControl1.Icons = Me.ImageManager1.Icons<br><br>And I am not assigning a value to the item prior to Item.Icon = 1<br><br><br>]]>
   </description>
   <pubDate>Fri, 08 Jun 2007 12:05:39 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7328&amp;PID=23536&amp;title=add-icon-to-reportrecorditem#23536</guid>
  </item> 
  <item>
   <title><![CDATA[Add Icon to ReportRecordItem : I have added an icon to the ImageManager...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7328&amp;PID=23505&amp;title=add-icon-to-reportrecorditem#23505</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1549">Shawshank</a><br /><strong>Subject:</strong> 7328<br /><strong>Posted:</strong> 07 June 2007 at 4:00pm<br /><br />I have added an icon to the ImageManager control. I then assigned the ImageManager to the .Icons property of the ReportControl. But when I add a ReportRecordItem and assign the .Icon property to the image value of the ImageManager the icon does not appear. Yet, when I assign the icon to a CommandBarControl the icon appears as expected. This tells me 1) that I have successfully added the icon to the ImageManager and 2) that the icon is valid and 3) that I am assigning the proper icon value to the .Icon property. What would cause the ReportRecordItem to not show the icon where the CommandBarControl will? Here is my code:<DIV>&nbsp;</DIV><DIV>lRet&amp; = CLSIDFromString(StrPtr("{4D36E977-E325-11CE-BFC1-08002BE10318}"), lGUID)</DIV><DIV>&nbsp;</DIV><DIV>lRet&amp; = SetupDiLoadClassIcon(lGUID, lIcon&amp;, lIdx&amp;)</DIV><DIV>&nbsp;</DIV><DIV>'I now have the icon handle in lIcon&amp;</DIV><DIV>'Assign to ImageManager</DIV><DIV>&nbsp;</DIV><DIV>Me.ImageManager1.Icons.AddIcon lIcon&amp;, 1, xtpImageNormal</DIV><DIV>&nbsp;</DIV><DIV>'Assign ImageManager to the .Icons property of RC</DIV><DIV>&nbsp;</DIV><DIV>Set Me.ReportControl1.Icons = Me.ImageManager1.Icons</DIV><DIV>&nbsp;</DIV><DIV>'Create ReportRecordItem and assign the icon</DIV><DIV>&nbsp;</DIV><DIV>Set Record = Me.ReportControl1.Records.Add()</DIV><DIV>Set Item = Record.AddItem("Test!")</DIV><DIV>&nbsp;</DIV><DIV>Item.Icon = 1</DIV><DIV>&nbsp;</DIV><DIV>I would expect the icon to appear on the ReportRecordItem but fails to. Assigning the icon to the CommandBarControl works great. What could I be doing wrong?</DIV><DIV>&nbsp;</DIV><DIV>Shawshank</DIV>]]>
   </description>
   <pubDate>Thu, 07 Jun 2007 16:00:54 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7328&amp;PID=23505&amp;title=add-icon-to-reportrecorditem#23505</guid>
  </item> 
 </channel>
</rss>