Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I recognise if print has been cancelled
Message
De
22/06/2004 08:55:49
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00915952
Message ID:
00916007
Vues:
9
>Hi
>
>I use the command set printer on prompt - if I cancel at the point where the list of printers comes up how can I recognise this in VFP
>
>Thanks
>
>Colin

You can get the printer name first with GetPrinter(). If the return value isblank(), the user has cancelled.

Then, if not isblank(), you can go ahead and print to the printer the user selected.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform