How to detect that a previewed report has been printed ?

Hello,

I need to detect if a previewed report has been printed or not ?

  FFrxReport.PreviewOptions.Buttons := FFrxReport.PreviewOptions.Buttons -
    [pbPrint];
  if FFrxReport.PrepareReport then
    if FFrxReport.ShowPreparedReport then
  begin
     If ReportWasPrinted then....
  end;

If there is no way, is it possible to override frxReport Print button ?

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 7:04PM
    Try using the tfrxreportcomponents onreportprint event.
  • edited 7:04PM
    gordk wrote: »
    Try using the tfrxreportcomponents onreportprint event.

    Thank you.
    I'm using AfterReportPrint event >
  • edited 7:04PM
    See my problem entitled 'Scripting error' and the help I had in solving it.
    I can get the number printed through Delphi in 'procedure frxReportAfterPrintReport(Sender)' by reading 'frxReport.PrintOptions.Copies'
    or from my report variable <NumPrinted>, which is cumulative.

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.