Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Chart in group footer

edited December 2006 in General
Hi everyone!

I would like to put a Pie chart in the group footer of my report so that
the the pie shows the proportion of the row in every group.
The chart and the report have to be linked to the same dbpipeline.

Can that be done? How? I only was able to get the same pie with the proportions
of the complete dataset, not for each group.

I'm using Delphi 2006 Pro, TeeChart 7.08 and RB 10.04


Lionello

Comments

  • edited December 2006
    Hi Lionello,

    The DBChart component in ReportBuilder is a wrapper around the actual
    DBTeeChart component in Delphi. This component will traverse the entire
    dataset that you give it. In order to only display the value for a specific
    group you will need to connect the chart to a separate dataset that is
    dynamically updated for each group. I went ahead and created an example of
    this altering the Where clause of a separate query in the
    GroupHeader.BeforePrint event. You can download the example from the link
    below.

    http://www.digital-metaphors.com/tips/GroupFooterDynamicPieChart.zip

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited December 2006
    Hello Nico,

    the example sounds good, I'll try to implement it in my application.

    Thanks for your time!

    Bye,

    Lionello
This discussion has been closed.