>>Is there a way do know if the user has printed the report after a preview.
>>Thanks.
>Cemal,
>
>I don't know the 100% reliable method, but for a start you can put a field in your Report Header with WasPrinted() function in it.
>
>before running your report
>
>private lWasPrinted
>lWasPrinted=.f.
>report form myreport preview
>?lWasPrinted
>
>Function WasPrinted is very simple
>if wexist("Printing")
> lWasPrinted=.t.
>endif
>return ""
>
>This would not absolutely reliable, since user can hit cancel button on the Printing window. But this is for a start.
>
>BTW, I got this idea from one of messages here by Cathy P.
Thanks Nadya,
I think to make two buttons
One that prints directly to the printer
and one that is only for preview.
I have seen a message from you about previewing with out the print preview toolbar.
Cemal