Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Capture
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
FoxPro 2.x
Titre:
Divers
Thread ID:
00001752
Message ID:
00001796
Vues:
31
>>Does anyone know how to capture the button that
>>was pressed when the Print dialogue is displayed.
>>
>>I need to know if the Cancel button has been
>used.
>>
>>I am using - "REPORT FORM file TO PRINT PROMPT"
>>
>>Thanks.
>
>Doug
>
>Here is the code I use. Hope it helps.
>
>
>if empty(lcPrinter)
> set printer to default
>else
> set printer to name (lcPrinter)
>endif
>lcPrinter = getprinter()
>if empty(lcPrinter)
> *-
> return(FALSE)
>endif
>set printer to name (lcPrinter)
>
>
>
>Tom
This is fine if your using VFP, but FPW doesn't have the option of NAME in the SET PRINTER TO commands. I also doesn't have the all important function GETPRINTER(). This is the FPW topic, isn't it?
mike h. 8-)
Michael P. Haake
FoxPro Programmer
"Doing the best I can!"
** Retired Air Force **
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform