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

TeeChart in CODE

edited September 2001 in General
Dear Digital-metaphors,

Thanx for your all help!!!!

Could you give example source about TeeChart usage in code?

Attila

Comments

  • edited September 2001
    > Could you give example source about TeeChart usage in code?

    Specifically what are you looking for? TeeChart in RB? Or in general? Did
    you drop a TeeChart in a report and it doesn't work? Are you looking at
    data-bound TCharts, or non-databound?

    Thanks
    Ed Dressel
  • edited September 2001
    Of course TeeChart in RB 6.02. I writing server application and without form
    objects. I can't use ReportDesigner object because I need create RB objects
    in runtime. My application server's datasource is Oracle Express (OLAP) and
    not RDBMS. I need use charts. I think about TeeChart for RB that will be
    good solve. I like give example source code from you about TppTeeChart usage
    (not in RB Designer).

    Thanks,
    Attila

  • edited September 2001
    > Of course TeeChart in RB 6.02. I writing server application and without
    form
    objects
    and
    usage

    All your reports are source based? Wow... that is a lot of extra work! I
    don't think you have to do that.

    In any case, create a TppChart object and assign the chart's band property,
    then add the series to it.

    Try creating a report in Delphi, not using RB, then add RB, and rather then
    assigning the .parent property, assign the .band property.

    Ed Dressel
    Team DM
  • edited October 2001
    We developing Integrated Business Planning System (IBPS) for economists and
    controllers. Your report designer is too complicate for economist :)
    We need develop simple report designer (for economist). Every report is
    source based because reports is being generate in runtime by the users.
    If we finished the IBPS, I will send demo CD for you (at november) :)

    How to use TppTeeChart, TppTeeChartControl, TBarSeries in CODE? Please send
    demo source for me...

    Thanx for your help!

    Attila
  • edited October 2001
    > We developing Integrated Business Planning System (IBPS) for economists
    and

    I am not an RB employee--just peer to peer support.

    send

    var
    lppLabel: TppLabel;
    lppReport: TppReport;
    lppChart: TppTeeChart;
    lSeries: TLineSeries;
    begin
    lppReport := TppReport.Create(self);
    lppreport.CreateDefaultBands;

    lppLabel := TppLabel.Create(self);
    lppLabel.Caption := 'Test This';
    lppLabel.Band := lppReport.HeaderBand;

    lppChart := TppTeeChart.Create(self);
    lppChart.Band := lppReport.DetailBand;
    {configure the chart size et al here}
    lppChart.Left := 0;
    lppChart.Top := 0;
    lppChart.Width := 7;
    lppChart.Height := 8;

    lppReport.DetailBand.Height := 8.2;


    lSeries := TLineSeries.Create(self);
    lSeries.ParentChart := lppChart.Chart;
    lSeries.FillSampleValues(100);

    lppreport.Print;
    end;

    HTH,
    Ed Dressel
    Team DM
This discussion has been closed.