on 2013 May 03 7:47 PM
In the event of a report that might take a very long time to load, is there any way to stop the load while it's in progress? When setting the ReportSource, and while the load is in progress, the entire app form locks up, even if I try setting the ReportSource in a background worker thread.
Request clarification before answering.
Hello Lazslo
Unfortunately, not really... you could spawn the report on another thread and in that way your main form / app does not get "locked".
See the following for more info:
KBA 1613561 - How to call a Windows form containing the CrystalReportViewer control on a separate thread
- Ludek
Senior Support Engineer AGS Primary Support, Global Support Center Canada
Follow us on Twitter
Got Enhancement ideas? Try the SAP Idea Place
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Here is what I have done to prevent UI locking, although I am still having issues killing the background thread.
Unfortunately, if the user closes the DocumentWindow, the ReportDocument.ReadRecords continues in the background even though you don't see it. I haven't had any success killing this thread...
Hello Brendan
Those are great tips and many thanks for sharing those.
I think the last part ( ReportDocument.ReadRecords continues in the background) is going to be difficult / impossible(?), as CR uses asynchronous connection to the database. E.g.; the query is handed off and the report engine essentially forgets about is until the data is sent back from the server. I can't come up with any ideas on how to kill asynch connections...
- Ludek
Thanks Ludek. Aside from what I noted, is there any other way of keeping the UI responsive on a long loading report?
How does it work in the Crystal Reports program, in that you can stop or close a report at anytime, and the UI is still responsive?
Is there any way of getting data off in pages/chunks? Maybe with the In process RAS or something else?
Thanks Ludek.
As an aside I have been using the reporting tools since the DataAccess-WinQL days and remember seeing you on the Crystal forums for a long time. It's good to know people with your experience are available to provide assistance. Time sure has flown by since Crystal (Vancouver) > Seagate > Business Objects > SAP. 🙂
User | Count |
---|---|
78 | |
22 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.