Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

EPrintError, NoPrinter, Urgent thanks!

edited May 2007 in General
Hi,

First I have to apologies for settings this matter to Urgent, but our
official validation of the application in question starts tomorrow.

I stumble across a situation where the end user does not have a printer
installed, but still press OK in the printer dialog to print the report.
This generates
an EPrintError that I can't catch in a try . except flow.

I'm now looking for any solution to this problem.
The best would be to catch it in a try..Except routine, so that I can
generate a customized message. Or..
Turn of the print out feature (but they will still need access to the PDF
export print out).

Or any other suggestion is welcomed, thanks!


Best regards,
Robert

Comments

  • edited May 2007
    1) I'd disable the print button if there are no printers installed on the
    machine. I use a custom dialog for printing reports--not the preview dialog.
    2) If there are no printers installed, replace the print dialog with a
    dialog of your own for printing to file.

    --
    Ed Dressel
    Team DM
This discussion has been closed.