How to know report has been printed in fastreport?

edited 5:46AM in FastReport .NET
How to know report has been printed in fastreport?
i??m using fastreport.net

Comments

  • edited September 2016
    dkouti wrote: »
    How to know report has been printed in fastreport?
    i??m using fastreport.net



    I need to know this same topic, because I need to close the reprot page. I'm using Fastreports and aspx form.
  • edited October 2016
    In Delphi there was an event, where i handled it this way:
    procedure TfrmFastReport.frxReport1AfterPrintReport(Sender: TObject);
    begin
       isPrinted := true;
    end;
    

    But in .NET I've the same problem. I tried with Event "finishedReport", but this will always be called.
    Maybe we have to handle it with an out-parameter (if this is possible?) in the Report and using the AfterPrint event in the Report Designer.
  • FlavioFlavio Brazil
    edited 5:46AM
    Try to use this event:

    FastReport.Utils.Config.ReportSettings.ReportPrinted += ReportSettings_ReportPrinted;
  • edited 5:46AM
    Thanks, this works perfect for me :-)
  • edited 5:46AM
    mjesner wrote: »
    Thanks, this works perfect for me :-)


    Please, show me
  • edited 5:46AM
    FastReport.Utils.Config.ReportSettings.ReportPrinted += new EventHandler(this.AfterPrint);

    private void AfterPrint(object sender, EventArgs e)
    {
    Console.Beep();
    }

Leave a Comment