Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to determine if the user pressed the print button during preview

Reports

How to determine if the user pressed the print button during preview

by  Mike Gagnon  Posted    (Edited  )
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



Register to rate this FAQ  : BAD 1 2 3 4 5 6 7 8 9 10 GOOD
Please Note: 1 is Bad, 10 is Good :-)

Part and Inventory Search

Back
Top