[]
Occurs when the printing process is aborted.
public event PrintAbortedEventHandler PrintAborted
Type | Description |
---|---|
PrintAbortedEventHandler | Occurs when the printing process is aborted. |
This event is raised if the printing process is aborted for any reason, such as by user action or a printing error that prevents the completion of the print job. Subscribing to this event allows the application to respond appropriately when a print job does not complete successfully, such as by notifying the user, logging the incident, or attempting to restart the printing process.
This example demonstrates how to subscribe to the PrintAborted event and handle it:
GrapeCity.ActiveReports.PrinterSettings printerSettings = new GrapeCity.ActiveReports.PrinterSettings();
printerSettings.PrintAborted += PrinterSettings_PrintAborted;
private void PrinterSettings_PrintAborted(object sender, EventArgs e)
{
Console.WriteLine("The printing process has been aborted.");
// Additional logic to handle the aborted print job can be added here
}