You'll want to play with this, but you can fire a procedure by "set procedure to reportproc" before the report prints, and running myprocedure() in the On exit expression of the summary band. If you do something like this:
set proc to reportproc
mno =0
report form myreport preview
if mno =1 && the user only previewed, but didn't print (I think)
wait window "what do you think you're doing?"
endif
and in reportproc.prg:
PROCEDURE notick
mno =mno +1
return
and putting notick() into the on exit expression of the summary band.
I said (I think) up there because I don't know if the print actually refigures the report or prints what it has in the preview. If the latter is the case, this whole thing wouldn't work.
JR
>Is it possible to trap when someone has canceled a report from the print preview window? Thanks!
CLARC Services, Inc.
3500 Tamiami Trail
Port Charlotte, FL 33952
www.clarc.com(941) 743-0108
(800) 246-5488