Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

stop crystal viewer

Status
Not open for further replies.

shakespeare5677

Programmer
Jul 18, 2005
284
US
I need to stop crystal report from loading in the crystal viewer on the web. The code running loads the report and navigates to last page (don't ask, it has to). The problem is that while I can navigate away from the page or even close the browser, crystal reports continues to run and take up resources until it's finished, often time even to the point where I can't display another report until the first one stops. I need to stop that process. Any help would be appreciated.
-Max
 
shakespeare: Not familiar with Crystal Viewer - can you set its display to "none" (css) thereby preventing it from loading a report and toggle it in this way? Perhaps set the view to Visible=False? Just a thought.
 
Isadore, thanks for the response. The problem lies on the server. I've managed to hide the report, reload the page, close it and all that good stuff and it does not prevent stop its loading. The server keeps executing the report and I need to stop it somehow.
 
Perhaps something could be done earlier on; say in the Page_Initiation, etc. I'll do a quick search and see if I can dig something up here for you. What is the code for initially activating/loading the crystal viewer? Is it triggered simply from having the object within the html? or in codebehind? Again, I know virtually nothing about Crystal Reports but perhaps with a few key words to search on we might be able to dredge something up on the net.
 
The code initiating the report is pretty standard server side and should be running, at least at first. I'm really looking for a way to stop the report in the middle of its load server side load from the client. Thanks again Isadore.
 
shakespeare5677 (Have you seen the movie Henry V?, pretty good).

Doing a general view of some of the topics I came across (in most cases altering the code behind):
1.) Maniupulation of DataSets, cache (not viewer)?
2.) Codebehind manipulation of ReportSource?
3.) CrystalReportViewer1.ReportSource, can you set it to ""?
4.) Not Loading, or condition Load() in codebehind?
5.) Excise it to a unique 2d form?
6.) Manipulate LogOn (conn string)?
7.) Bypass database Location?
8.) Bypass object (null) >> Report name assignment?
9.) Withhold parameter collection?
10.) Filter report obj?

Shakespeare5677: It seems that most of the chatter out there has to do with problems loading the reports, quite opposite from what you are trying to do.

I have argued from time to time that they need a Crystal Report Group here at Tek-Tips; so many times these questions come through ASP.NET - but there are a few in the neighborhood with experience; perhaps one will drop by.

I just gave you a brief above which may not help at all; but were the issues/triggers that I saw in the 10 mins I spent looking at this information (again, I have never created a Crystal Report but thought I'd throw up a few ideas in case perhaps one may trigger a thought).
 
Isadore, thank you very much for all of your help. I'll give these a try and see what comes of it. Thanks again.
-Max
 
For all those interested, I just spoke with CR tech support, and they kindly informed me that stopping a report creation/navigation that results from cliking "ShowLastPage", which is what we do, is not possible.
-Max
 
Thanks shakespeare5677 - I remember seeing one reference saying something close to that -- and, by the way, if you carry out a forum search on "crystal" (I have just discovered) you will find a number of very vibrant Crystal Reports forums.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top