Home Devices
New Blog Posts: Merging Reports - Part 1 and Part 2

How to know the report is printed before?

edited September 2004 in Devices
Hi,
May I know is any way to know the report builder is in the state printing
report? like everytime print out the report it may return a value(mayeb
integer) which for me to store in table, than I can know this record I
already printed how many time before.
if report.print it may just show me the print dialog, user still can
cancel, I wan to know it is real printing.
Thanks!!

CH

Comments

  • edited September 2004

    Options:

    1. Use the OnPrintDialogClose event to check Report.PrintDialog.ModalResult.
    Example:

    if myReport.PrintDialog.ModalResult = mrOK then
    {report about to print}

    2. Use Report.AfterPrint event

    if myReport.PrinterDevice <> nil then
    ShowMessage('AfterPrint to Printer');

    3. Use Report.BeforePrint event to check Report.PrinterDevice <> nil -
    similar to 2 above...


    --


    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.