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

TeeChart Pro 8 and RbEnterprise 11.08

edited July 2010 in General
Hi,

I'm having a problem with a report I'm trying to develop, I'm using RB
Enterprise 11.08 with Tee Chart Pro 8.06.60902.

I'm having an issue with the LoadChartFromStream method, it is giving me a
"Property Align does not exist" error when I run it. A sample of the
offending code is....

var
l_Chart: TCustomChart;
l_SourceChart: TChart;
l_Str: TMemoryStream;
begin
l_Str := TMemoryStream.Create;
try
l_Chart := TChart(chtrptGraphSection1.Chart); //My TppTeeChart
l_SourceChart :=
fGraphsForm.GraphFromType(GraphTypeFromRef(cdsGraphsSection1.FieldByName('Ref').AsString));

SaveChartToStream(l_SourceChart, l_Str, False, False);
l_Str.Position := 0;
LoadChartFromStream(l_Chart, l_Str);
fGraphsForm.CreateGraph(GraphTypeFromRef(cdsGraphsSection1.FieldByName('Ref').AsString),
TChart(l_Chart));
finally
FreeAndNil(l_Str);
end;
end;

When I substitute TChart(chtrptGraphSection1.Chart); which is a TppTeeChart
for a standard TChart component dropped on the form then I have no issue.

Do I need to upgrade my TeeChart to a later version?

TIA

Willie

Comments

  • edited July 2010
    Hi Willie,

    If possible, please send a simple example to support@digital-metaphors.com
    in .zip format demonstrating this issue and I'll take a look at it for you.
    Also, which version of Delphi are you using?

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited July 2010
    HI, thanks,

    I'll try to do that shortly. I'm using D2010, I've got the automatic
    updater running so it should be the latest version

This discussion has been closed.