<?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 : [DEMO] Charting with ReportControl</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Chart Control : [DEMO] Charting with ReportControl]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 07:50:06 +0000</pubDate>
  <lastBuildDate>Mon, 21 Mar 2011 10:22:00 +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=18089</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[[DEMO] Charting with ReportControl : Nice demo! One thing that the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18089&amp;PID=63428&amp;title=demo-charting-with-reportcontrol#63428</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 18089<br /><strong>Posted:</strong> 21 March 2011 at 10:22am<br /><br />Nice demo! <br><br>One thing that the demo illustrates (IMHO) is the ability to set the vertical and horizontal alignment of a chart. For example, it would nice to be able to align the pie chart to the top of the available space rather than the middle.&nbsp; I have a similar issue with one of my projects where I would like the pie chart to be aligned to the left of the available space rather than the center. A minor issue, but it would still be nice to have control over the chart alignment.<br><br><br>]]>
   </description>
   <pubDate>Mon, 21 Mar 2011 10:22:00 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18089&amp;PID=63428&amp;title=demo-charting-with-reportcontrol#63428</guid>
  </item> 
  <item>
   <title><![CDATA[[DEMO] Charting with ReportControl : Hi,   This is exactly what I...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18089&amp;PID=63426&amp;title=demo-charting-with-reportcontrol#63426</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 18089<br /><strong>Posted:</strong> 21 March 2011 at 9:37am<br /><br />Hi, <DIV>&nbsp;</DIV><DIV>This is exactly what I needed and maybe usable for other members as well <img src="http://forum.codejock.com/smileys/smiley2.gif" height="17" width="17" border="0" alt="Wink" title="Wink" />&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>My original idea was to have a legend that would be scrollable because I have a lot of 'items'&nbsp;added to the ChartControl and you all know that's a&nbsp;PITA... The more items you have, the smaller the&nbsp;area gets to render the chart.&nbsp;I knew I needed Markup to get the legend &nbsp;&nbsp;&nbsp;</DIV><DIV>drawn so I had two options, the CJ PropertyGrid control and the ReportControl. I chose the ReportControl (because this is still my favorite control hehehe) and while I'm&nbsp;trying to implement&nbsp;it I came up with the idea using the RC as data for the Charts. </DIV><DIV>&nbsp;</DIV><DIV>Using RC for this I have following options at my disposal</DIV><UL><LI>No need for loading data again and again and again to render the charts <LI>Sorting <LI>Grouping&nbsp; <LI>BeforeDrawRow event to draw legend</LI></UL><P>Heeee <img src="http://forum.codejock.com/smileys/smiley38.gif" height="17" width="17" border="0" alt="Lamp" title="Lamp" />&nbsp;I have DrawItem event as well...&nbsp;&nbsp;If I'm not mistaken ChartControl has <strong>PrintToDC hDC</strong> .... method. Yes, could use that to render a chart into a ReportItem. That's when this DEMO came to <strong>'life'</strong> I had reanimate it a few times and currently&nbsp;it's&nbsp;going a little better, only <SPAN lang=en id=result_ ="short_text"><SPAN title="Klik voor alternatieve vertalingen" ="hps" closure_uid_nc2uzt="146">artificial</SPAN> <SPAN title="Klik voor alternatieve vertalingen" ="hps" closure_uid_nc2uzt="147">respiration is needed&nbsp;&nbsp;<img src="http://forum.codejock.com/smileys/smiley2.gif" height="17" width="17" border="0" alt="Wink" title="Wink" /></SPAN></SPAN></P><SPAN lang=en ="short_text"><SPAN title="Klik voor alternatieve vertalingen" ="hps" closure_uid_nc2uzt="147"><DIV></DIV>And who knows this will be solved (read: IMPLEMENTED <img src="http://forum.codejock.com/smileys/smiley36.gif" height="17" width="17" border="0" alt="LOL" title="LOL" />) by one of the CJ developers. <DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV>&nbsp;</DIV><DIV>There are a few known problems, most of them&nbsp;I commented but if there are more, I would like to know it as well. So, if you would run into a problem or have an idea (or two), you could use this post to discuss it. The code is a bit messy but hey!!!, it's a DEMO, right? If someone feels like putting it all into a reusable class, be my guest <img src="http://forum.codejock.com/smileys/smiley2.gif" height="17" width="17" border="0" alt="Wink" title="Wink" />&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>This DEMO is mostly to keep the&nbsp;CJ developers awake <img src="http://forum.codejock.com/smileys/smiley36.gif" height="17" width="17" border="0" alt="LOL" title="LOL" />&nbsp;In my opinion this would be&nbsp;THE implementation of the year. It isn't hard as you can see in the code, just plain old VB code. You don't have to be a rocket scientist to understand it. Commented&nbsp;most of the code, so...</DIV><DIV>&nbsp;</DIV><DIV>Following options are included in the DEMO:</DIV><DIV>&nbsp;</DIV><UL><LI>ReportControl is used for adding data (I only added few records to show what it does) <LI>Able to sort, group and filter, data which will be used to add points to a <strong>SINGLE</strong> serie (maybe there will be a sequel to this demo...) <LI>Able to draw in a single ReportItem or as PreviewItem (not much of a difference though, see for youself) <LI>Legend is drawn in a ReportItems with Markup (Only created 3 out of ?? because my Markup is poor) <LI>Select a different 'Palette' and ColorEach option. <LI>Option to set custom height. <LI>Custom contextmenu for RC (grouping and columns visibilty)&nbsp;Long time ago, I&nbsp;requested a customization property like we already have with Statusbar. <LI>And last but not least able to have PrintPreview (didn't test printing yet) with multiple pages (used the ReportControl printpreview)</LI></UL><DIV><U><strong>edit: You can't use 3D charts to render chart in ReportControl because .PrintToDC isn't implemented (yet)</strong></U></DIV><DIV>&nbsp;</DIV><DIV>That's about it, maybe you have suggestions or ideas that could be used to enhance this demo, so feel free to reply in this post.</DIV><DIV>Here it is...</DIV><DIV>&nbsp;</DIV><DIV><a href="http://forum.codejock.com/uploads/3701/ChartingWithReportC&#111;ntrol.zip" target="_blank">uploads/3701/ChartingWithReportControl.zip</A></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV></SPAN></SPAN>]]>
   </description>
   <pubDate>Mon, 21 Mar 2011 09:37:23 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18089&amp;PID=63426&amp;title=demo-charting-with-reportcontrol#63426</guid>
  </item> 
 </channel>
</rss>