Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Capturing Print Dialogue Box Result
Message
 
 
À
13/04/2002 22:29:47
Mike Smith
Doncaster Office Services
Oakville, Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00644779
Message ID:
00644781
Vues:
41
Not directly but you can create variable llPrinted in your program and set it to .T. in the report
* Report Summary band on Exit. 
_VFP.SetVar("llPrinted", WEXISTS("Printing..."))

* Program 
llPrinted = .F.
Report Form myreport to Printer Promp Preview
IF llPrinted 
   ...
ENDIF
This way you can also capture situation when user cancels in the middle of printing.

>When a user gets the print dialogue box from PRINT PROMPT there is an option to "Cancel".
>
>I am marking a data file to reflect that certain things are printed, but the operator may have pressed "Cancel". In this case I would not want to mark the data file.
>
>Is there a way of determining if the operator pressed "Cancel" at the Print Dialogue Box?
>
>Mike Smith
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform