Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Isprinted?
Message
From
06/04/2001 03:16:39
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Title:
Miscellaneous
Thread ID:
00492252
Message ID:
00492701
Views:
15
>>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 && you can also use local var
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform