Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sys(1037)
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00620415
Message ID:
00620419
Vues:
24
Try:

report form myreport to printer prompt preview noconsole

First the report goes to the Preview. If the user then clicks the Print button on the Print Preview toolbar, they get the Printer Setup dialogue. If they cancel from that, the report does not print, no error, no harm, no foul. Same thing if the user just exits from the preview.

>As we all know, SYS(1037) displayes the Print Setup dialog. Any changes you make in that dialog "stick" until you change them. The bad thing about it is that it always returns the empty string. So you can detect if OK or Cancel was clicked. I seem to recall there being another function (but not a SYS function) that did the same thing but also returned a value (like maybe the printer chosen or "" if cancel was chosen). Am I right or is my memory playing tricks on me? I don't want to use GETPRINTER() because it only lets you pick a printer (which you then have to use SET PRINTER TO after wards).
>
>Thanks all
Mark McCasland
Midlothian, TX USA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform