Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to determine if user cancelled print?
Message
From
21/12/2006 13:09:30
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01179595
Message ID:
01179618
Views:
6
>>>Is it possible to determine if user clicked/selected to cancel report printing? The report is called with TO PRINTER PROMPT.
>>
>>See thread #644779
>
>Thank you, Tore.
>
>What do you think about another approach I thought about. I can compare the report cursor/table record number before and after the REPORT FORM and if it didn't change, user clicked on Cancel?

That might work, unless the report resets the record number, I really don't know. Anyway, it will not work if you only have one record in cursor/table which drives the report. Another approach is to create a property, for instance _screen.lPrinted, which you set to false before you start the report, and set to true in the footer of the report.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform