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