Delphi / Object Pascal · Exception

EPrinter Exception

What does EPrinter Exception mean in Delphi / Object Pascal?

Raised when a printing operation fails - the selected printer doesn't exist or is offline, the print job couldn't be spooled or sent to the device, or the printer driver rejects the requested settings.

EPrinter ExceptionDelphi (VCL)

Condition

Raised when a printing operation fails - the selected printer doesn't exist or is offline, the print job couldn't be spooled or sent to the device, or the printer driver rejects the requested settings.

Fix

Check Printer.Printers for a valid, currently-installed printer before setting Printer.PrinterIndex, verify the printer is online and ready, and surface the exception message to the user since most causes require them to fix something on their end.

Related exception