Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to determine if user cancelled print?
Message
 
 
To
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:
01179677
Views:
7
>>>>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.

Thank you for your reply and suggesetion. I can see I have a couple of options.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Reply
Map
View

Click here to load this message in the networking platform