show outline by script

edited 10:25AM in FastReport 4.0
Hi,
is it possible to show outline by script in a report?
i have tried this:
procedure OnStartReport(Sender: TfrxComponent);
begin
  report.PreviewOptions.OutlineExpand := True;    
  report.PreviewOptions.OutlineVisible := True;
end;

procedure Page1OnBeforePrint(Sender: TfrxComponent);
begin
  report.PreviewOptions.OutlineExpand := True;    
  report.PreviewOptions.OutlineVisible := True;  
end;
but it didn't work


Comments

  • gordkgordk St.Catherines On. Canada.
    edited 10:25AM
    do it from outside, set the preview options after loading the report and before calling showreport.

Leave a Comment