>I know 1 solution, sorry if somebody else already say it.
>Create a new public variable printfinished=.F., put on the last page of the report some code to change the printfinished to .T., when returning change the status of the document to printed if printfinished is .T., then other printing of the document will be marked as copy of the original.
Hi,
1. You don't have to make the variable public, even local variable will work defined prior to calling report form
2. If you do a preview, you need to know, if the report was printed from the preview or not.
You can do it by putting this expression in the summary OnExit
_VFP.SetVar('PrintFinished', sys(2040) = '2')
There is also a more complex way for VFP9 using Report Listener.
If it's not broken, fix it until it is.
My Blog