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

In This Topic
    PrintProgress Event (SectionDocument)
    In This Topic
    Occurs when the document pages are printing.
    Syntax
    '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.

    PropertyDescription
    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