'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.
Property | Description |
---|---|
Exception | 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