ActiveReports 19 .NET Edition
MESCIUS.ActiveReports.Viewer.Wpf Assembly / GrapeCity.ActiveReports.Viewer.Wpf Namespace / Viewer Class / LoadCompleted Event
Example

In This Topic
    LoadCompleted Event (Viewer)
    In This Topic
    Occurs after all the viewer pages have been fully loaded.
    Syntax
    'Declaration
     
    Public Event LoadCompleted As LoadCompletedEventHandler
    public event LoadCompletedEventHandler LoadCompleted
    Example
    viewer.LoadCompleted += (sender, e) =>
    {
        // Handle the LoadCompleted event
        // For example, update the status bar with the total number of pages
        statusBarLabel.Text = $"Total Pages: {viewer.Document.Pages.Count}";
    };
    See Also