Win.Viewer LoadComplete event not firing

Posted by: rachel.gray on 26 October 2017, 9:54 am EST

    • Post Options:
    • Link

    Posted 26 October 2017, 9:54 am EST

    Hello,

    I’m wanting to exporta page report to pdf, and have put the code to do so in the Loadomplete event of the Win.Viewer I am loading the report into. This works fine if the LoadComplete event fires, but it doesn’t always do this!

    How can I find out why the load has failed? Is there a property of the viewer or document I can look at? Or an event I can handle?

    At the moment my code is

    	PageReport = new PageReport();
                PageReport.Load(new System.IO.FileInfo(rdlxFileLocation));
                PageDocument = new PageDocument(PageReport);
    

    .

    .

    .

    //parameters and datasources set dynamically

    .

    .

    .

       AdvancedViewer = new GrapeCity.ActiveReports.Viewer.Win.Viewer();
            AdvancedViewer.LoadCompleted += AdvancedViewer_LoadCompleted;
    
            AdvancedViewer.LoadDocument(PageDocument);
    

    Thanks,

    Rachel

  • Posted 27 October 2017, 8:46 am EST

    Hi Rachel,

    I created a sample application to test the behavior described by you and found it to be working correctly. Please refer to the attachment.

    I would request you to please modify the sample application and send it back to me, in case the issue still persists.

    Thanks,

    Deepak Sharma

    ARPage_ViewerLoad.zip

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels