How to know the report is printed before?
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
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
This discussion has been closed.
Comments
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