ActiveReports 19 .NET Edition
MESCIUS.ActiveReports Assembly / GrapeCity.ActiveReports.Document Namespace / SectionDocument Class / PrintingThreadErrorEvent Event
Example

In This Topic
    PrintingThreadErrorEvent Event (SectionDocument)
    In This Topic
    Occurs when the printing error occurs.
    Syntax
    'Declaration
     
    Public Event PrintingThreadErrorEvent As PrintingThreadErrorEventHandler
    public event PrintingThreadErrorEventHandler PrintingThreadErrorEvent
    Event Data

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

    PropertyDescription
    Gets the printing thread exception.  
    Example
    private GrapeCity.ActiveReports.SectionReport sectionReport = new GrapeCity.ActiveReports.SectionReport();
    private void button_Click(object sender, RoutedEventArgs e)
    {
    	sectionReport.Document.PrintingThreadErrorEvent  += (sender, e) =>
    	{
    		label1.Text = "Error: " e.Exception.Message;
    	};
    	sectionReport.Document.Print();
    }
    See Also