Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
"Yes! The usual technique used is to create a UDF() that looks for the
distinctive "Printing..." Window and call it in the report title or summary,
depending on whether you want to know if the printing was completely send to
the printer (spooler more accurately). Something like:
*** wasprinted.prg
IF WEXIST("Printing..."
g_lPrintedDuringPreview = .T.
ENDIF
Of course g_lPrintedDuringPreview is "global" to the print process and was
set to .F. before the REPORT ... TO PRINTER PREVIEW, and you check the value
after the report has completed"[endquote]
The idea is to determine if the "Printing..." window appeared while the user previewed the report. Of course this doesn't account if the printer is on, or the system crashed etc...It just means the "Printing..." window appeared.
You could also remove the print icon from the preview tollbar, to prevent the user from printing in a preview mode.
Mike Gagnon
If you want to get the best response to a question, please check out FAQ184-2483 first