Fastreport 5.6 TfrxChartView Error

edited 4:54AM 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 4:54AM
    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 4:54AM

    Thanks for your help.Good wishes to work.

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.