'Declaration Public Event PrintProgress As PrintProgressEventHandler
public event PrintProgressEventHandler PrintProgress
Event Data
The event handler receives an argument of type PrintProgressEventArgs containing data related to this event. The following PrintProgressEventArgs properties provide information specific to this event.
Property | Description |
---|---|
CurrentPage | Gets the current printing page number. |
Example
private GrapeCity.ActiveReports.SectionReport sectionReport = new GrapeCity.ActiveReports.SectionReport(); private int pageNum = 0; private void button_Click(object sender, RoutedEventArgs e) { sectionReport.Document.PrintProgress += (sender, e) => { label1.Text = "Printing page: " + pageNum; pageNum++; }; sectionReport.Document.Print(); }
See Also