[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.PrinterSettings.PrintAborted

PrintAborted Event

Occurs when the printing process is aborted.

Namespace: GrapeCity.ActiveReports
Assembly: MESCIUS.ActiveReports.Viewer.Common.dll
Syntax
public event PrintAbortedEventHandler PrintAborted
Returns
Type Description
PrintAbortedEventHandler Occurs when the printing process is aborted.
Remarks

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.

Examples

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
}