Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to determine if user cancelled print?
Message
 
 
À
21/12/2006 13:09:30
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01179595
Message ID:
01179677
Vues:
8
>>>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform