ActiveReports 19 .NET Edition
MESCIUS.ActiveReports.Viewer.Common Assembly / GrapeCity.ActiveReports Namespace / PrinterSettings Class / PrintProgress Event
Example

In This Topic
    PrintProgress Event (PrinterSettings)
    In This Topic
    Occurs when there is a change in the printing progress.
    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.  
    Remarks
    This event is raised during the printing process to provide updates on the progress of the print job. It can be used to update a progress bar, display status messages, or perform other UI updates related to the printing progress. Subscribing to this event is particularly useful in applications where user feedback during long-running print jobs is essential.
    Example
    This example demonstrates how to use the GrapeCity.ActiveReports.Printing.PrintProgressEventArgs in a print progress event handler:
    void OnPrintProgress(object sender, GrapeCity.ActiveReports.Printing.PrintProgressEventArgs e)
    {
        Console.WriteLine($"Printing page {e.CurrentPage}.");
        // Additional logic to handle print progress can be added here
    }
    See Also