Fastreport 5.6 TfrxChartView Error

edited 10:40AM in FastReport VCL 5
Hi,

I get this error "Control Chart has no parent window" when I try to put it on report, Please help

Best Regards.
hata.png 121.2K

Comments

  • gpigpi
    edited 10:40AM
    You may update XE5, use latest registered TeeChart or modify frxChart.pas:
    procedure TfrxChartView.CreateChart;
    begin
      FChart := GetChartClass.Create(nil);
      with FChart do
      begin
        Color := clWhite;
        BevelInner := bvNone;
        BevelOuter := bvNone;
    {$IFDEF DELPHI19}
        if FChart.ParentWindow = 0 then
          FChart.ParentWindow := frxParentForm.Handle;
    {$ENDIF}
        Name := 'Chart';
        Frame.Visible := False;
        View3DOptions.Rotation := 0;
        Title.Text.Text := '';
      end;
    
    end;
    
  • edited 10:40AM

    Thanks for your help.Good wishes to work.

Leave a Comment