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

DBChartTools

edited January 2006 in General
I have a DBChart on a Report. I added two Chart Tools to the DBChart but I
need to set the values ar run time. I can't seem to find my way to the
Chart tools in design mode to make the assignments.


RB 7.04 Ent
TeeChartPro 6.01

Comments

  • edited January 2006
    Hi Larry,

    You can use the TppDPTeeChart.Chart property to access the actual
    TCustomChart object being used. I believe then you have access to the Tools
    property which gives you access to any chart tools you have created. See
    the TeeChart help for more information.

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited January 2006
    I spent half the night trying what you say. It would almost seem as if the
    properties we not published.
    Finally I surrendered and rolled my own along the lines of:

    Does anyone else make charts that work with your reports. We are getting
    ready to upgrade RB but I am not impressed with the Steema products.


    CenterLineTool:= TColorLineTool.Create(ppDPTeeChart1);
    ColorBandTool:= TColorBandTool.Create(ppDPTeeChart1);
    With CenterLineTool Do
    Begin
    AllowDrag := false;
    Draw3D := False;
    Pen.Style := psDot;
    Pen.Width := 3;
    Value := FieldByName('MeanWt').AsFloat;
    Axis := ppDPTeeChart1.Chart.BottomAxis;
    End;

    With ColorBandTool do
    Begin
    Brush.Color := 12728525;
    Color := 4227327;
    EndValue := FieldByName('HiLimit').AsFloat;
    Gradient.Balance := 71;
    Gradient.EndColor := 8454143;
    Gradient.MidColor := clTeal;
    Gradient.StartColor := 8388863;
    StartValue := FieldByName('LowLimit').AsFloat;
    Axis := ppDPTeeChart1.Chart.BottomAxis;
    End;


    ppDPTeeChart1.Chart.Tools.Add(CenterLineTool);
    ppDPTeeChart1.Chart.Tools.Add(ColorBandTool);


  • edited January 2006
    Hi Larry,

    We do not know of any other charting products that work with ReportBuilder
    however if you do find a product that you like and it produces a chart image
    in Delphi, it is rather easy to transfer that image to a ReportBuilder
    report to display the chart. Many of our customers already do this with
    TeeChart.

    --
    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.