Version

Error Event

Invoked when an error occurs which prevents the print operation from proceeding.
Syntax
'Declaration
 
Public Event Error As ErrorEventHandler
public event ErrorEventHandler Error
Event Data

The event handler receives an argument of type ErrorEventArgs containing data related to this event. The following ErrorEventArgs properties provide information specific to this event.

PropertyDescription
Cancel (Inherited from System.ComponentModel.CancelEventArgs) 
ErrorDescription The description of the error that occurred.
ErrorTitle The title of error that error dialog which will display.
Remarks

This event will fire when the generation of the print output results in an error. For example, if there are not tasks to print, or if the PrintXColumnsOnEveryPage results in repeating columns that fill the entire width of the page and leave no room for other content.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also