Progress Bar on Report Load

Alex_de_KockAlex_de_Kock Bloemfontein, Free State, South Africa
edited 9:37AM in FastReport 4.0
Could someone give me some pointers, and if it is in any way possible to build a progress bar in script, which indicates the progress while the report is being built?

Thank you

Comments

  • Alex_de_KockAlex_de_Kock Bloemfontein, Free State, South Africa
    edited 9:37AM
    Thank you Gavin. :-)
  • gpigpi
    edited 9:37AM
    You can't to use progressbar, you don't know how many pages was generated
    You can show what page number prepared at this moment only
    var FormPA: TForm;
        ButtonPA: TButton;                                                     
    procedure PageHeader1OnBeforePrint(Sender: TfrxComponent);
    begin
         FormPA.Caption := IntToStr(<Page>);                                                        
    end;
    
    procedure Page1OnAfterPrint(Sender: TfrxComponent);
    begin
         FormPA.Free;                      
    end;
    
    procedure ButtonPAOnClick(Sender: TfrxComponent);
    begin
         Engine.StopReport;
    end;
    
    begin
        FormPA := TForm.Create(nil);
        FormPA.Height := 200;
        FormPA.Width := 200;
        ButtonPA := TButton.Create(nil);
        ButtonPA.Left := 50;
        ButtonPA.Top := 50;
        ButtonPA.Width := 70;
        ButtonPA.Height := 24;
        ButtonPA.Caption := 'Cancel';
        ButtonPA.Parent := FormPA;
        ButtonPA.OnClick := @ButtonPAOnClick;                                                      
        FormPA.Show;
    end.
    

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.