Home Subreports

How could i do this

edited April 2004 in Subreports
I'm having a report with a subreport on it. On the subreport's summary there
is a pie-chart. (Non Data Aware)
This pie chart is filled by a passtrough function (Due to crashes in
D6.2/RB7.03/Tee6.01).
This works fine, but nog the user would like to have several charts instead
of 1.
The number is not known at design time, depending on the user requesting the
report this number might change.
Can i, from RAP/Passtrhough add charts to the summary and fill them ????

Comments

  • edited April 2004

    Sounds doable. I think you just need to create the chart in code and assign
    TppTeeChart.Band property.

    Timing wise you need to choose an event in which to create the chart
    components. Perhaps this is specified as an AutoSearch parameter and you can
    use OnGetAutoSearchValues. If you need to use Report.BeforePrint or
    Band.BeforePrint, keep in mind that these events can fire more than once.
    One solution would be to set a global boolean when you create the charts.


    --
    Nard Moseley
    Digital Metaphors
    http://www.digital-metaphors.com


    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.