c# Crystal reports wait cursor
Using vs2008, WinForms C#.
I am using the crystal reports version that comes with vs2008.
I can create and load a crystal report. But because it can take a few minutes to load, I want to bring up a wait cursor, but am having trouble with that.
I have tried setting the
this.crystalReportViewer1.Cursor = Cursors.WaitCursor;
and tried the parent form
this.cursor = cursors.waitcursor;
The cursor changes briefly to wait mode, then changes back before the report has finished loading. How can I best set the wait cursor before the report starts to load, force it to stay in wait mode then change it back to the arrow, only after the report has finished loading.
You would think so wouldnt you. It does seem like it should work. But what i have found is using the "UseWaitCursor" property on the crystal report viewer results in
- when loading large data amounts cursor = arrow, screen is blank, looks like lockup
- data finish loading
- cursor goes hourglass
- report view shows 1 sec later
- cursor goes to arrow.
Basicly the busy cursor stays busy for 1 brief second before the report displays, but only after all the data has been loaded.
I found another option that finally worked for me
this.Cursor = Cursors.WaitCursor;
this.crystalReportViewer1.ReportSource = Rpt;
this.Cursor = Cursors.Default;
this process worked for me finally