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

Change a series title with RAP

edited July 2005 in General
Hi there,
How can I change the title of a TChartSeries using RAP? I've tried the
following code but the compiler complains about the "Title" property of the
series.

procedure chrtDetailOnPrint;
var
myTeeChart: TppDPTeeChartControl;
mySeries: TChartSeries;
begin
myTeeChart := chrtDetail.Chart;
mySeries := myTeeChart.SeriesList[0];

mySeries.Title := 'My series title';
end;

Comments

  • edited July 2005
    Hi David,

    I do not believe the TChartSeriesList is available in native RAP. You will
    probably need to create a simple pass-thru function to perform this task in
    RAP. For an example of creating a pass-thru function, please see the RAP
    section of the ReportBuilder Developer's Guide.

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.