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

adding several charts at runtime

edited June 2005 in General
RB7Std.
Hi all,
i need to perform at runtime those tasks:
1: create a tppchart
ok: that's easy...
2: position it into a TppRegion
mmmh.... tchart.parent is readonly... !?!
3: load chart definitions from file
ops, TeeStore.LoadChartFromFile accepts chart as a var parameter, while
tppchart.Chart is a constant object...

4: populate it with data
this is easy, too.
5: create, position and fill with captions some tpplabels.
no probs for that ...
any clues?
thanks to all in advance.

Comments

  • edited June 2005
    Hi Gianantonio,

    2. When using TeeCharts in ReportBuilder you will be using a wrapper object
    named TppTeeChart. This wrapper object descends from TppComponent which
    contains the Region property. Setting this property to a specific region on
    your report will add this component to the region.

    3. We have never tried this before. You may need to create a temporary
    TCustomChart, load your chart from file, then assign it to the
    TppTeeChart.Chart property.

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited June 2005
    Nico Cizik (Gianantonio's guardian angel :->) wrote:
    Right! this really helps.
    As usual, thank you, Nico!
This discussion has been closed.