In order to determine if the user pressed the printer icon while previewing the report, create a procedure in your main program (call it PRINTED). And in the gray band of page header of your report (The fist of three bands), in the "on entry" textbox put PRINTED(). Declare a public variable called lPrinted and set it to .F..
Code:
PROCEDURE PRINTED
IF WEXIST("Printing...")
lPrinted = .T.
ENDIF
ENDPROC
Now the variable returns wheter the report was printed or not. Mike Gagnon
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.