Loading report in Crystal Report Viewer in another thread
I'm using a CrystalReportViewer (from vs2008) to show a report in a wpf application.
Because I want to get the total page count from the report, on loading the report I do a crystalReportViewer.ShowLastPage(), than a .GetCurrentPageNumber() and than a .ShowFirstPage().
With this method i'm not only getting the total number of pages, but also the report is loaded in 'cache' so browsing the report is faster.
But, as long as the .ShowLastPage() method is busy, my wpf application (or any other application i'm using the viewer in), is locked.
Is there a way to load the whole report on another thread? So my program will continue running while the report is loading...