Hello All,

I have a need to detect when the cancel button is pressed on a printer dialog box.

The program runs 5 crystal reports back to back.
The user can select which printer all the reports will use.
After the correct printer is selected, I store it and use it for the rest of the reports via
Send ComSelectPrinter of hoReport "" (String(sPrinterToUse)) ""
and then disabling the dialog box from appearing in the 4 remaing reports via
Set pbPrinterPrompt of hoReport to False.

But if the user clicks the cancel button on the first report I need to kill the remaing 4 reports.

Any help would be greatly appreciated.

Bob Yursha