Skip to Content
0
Former Member
Feb 13, 2009 at 01:55 PM

Checking if Report has fully loaded in Java Project

31 Views

Morning All,

I hope this isnt another one of my daft questions, but how can I put a listner or determine when a report

has fully loaded.

Im testing out the "Crystal Reports Java Project" and am trying to determine when the report has fully

loaded so that I can dispose of it and close the Frame.

So far I am not having any luck, I have got some listeners checking when the window looses focus

and such but that still doesnt tell me when the report has finished loading.

I also tried useing

viewerFrame.reportViewer.isBusy()

but I am not happy with this, as sometimes it returns the correct "true" result while its loading, but then other times it says "false" when clearly I can see the report is still loading.

A post I found somewhere said that the only way is to determine if the total page count in known, but

I have not worked out how to do this yet, or atleast cant find how to do this.

So..... any ideas how I can be sure the report is loaded so that I can programmaticly export the report

and then close everything up.

Cheers

Darren