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