Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I recover if user cancels the Print Setup dialog?
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00547069
Message ID:
00547091
Vues:
11
Instead of that, I use the command:

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.

>I am using =SYS(1037) to give the user the opportunity to change printer orientation on the fly. It works fine, however, I noticed that if I hit [Cancel] instead of [OK], I get
>
>"Error Loading Printer Driver" from my next REPORT FORM statement.
>
>SYS(1037) returns nothing, so I can't tell how the user exited.
>
>How do I trap this or get around this hole?
>
>Thanx,
>Joe Pirola
Mark McCasland
Midlothian, TX USA
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform