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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Query Rerun on Change of Page

Status
Not open for further replies.

Gixonita

IS-IT--Management
Oct 17, 2005
103
US
Hi,

I developed about 15 different reports that are accessed through our web site, one of the reports contains a call to a stored procedure in SQL Server which is fairly complicated. If I run the report using the Crystal Reports interface it takes about 4 minutes to display the report (which is normal response time for that specific query) and I can move about it with no problem (changing pages, going from first page to last, etc). If I run the report through the web site it takes the same time to return the first page BUT if I try to go to the next page, instead of being immediate, it takes again about 4 minutes to return (any page movement will take the same amount of time), it would seem that every time I change a page the query is rerun just to get the data for the specific page I'm requesting.

I'm running Crystal Reports XI and Visual Studio 2003

I will appreciate any help provided since this is a financial query and unfortunately we have auditors with us at the moment.

Thank you

Luis Torres
 
Do you have subreports?

[yinyang] Madawc Williams (East Anglia, UK). Using Windows XP & Crystal 10 [yinyang]
 
Hi Madawc,

there are no subreports, its a simple call to a stored procedure (which performs all the necessary calculations) and returns the data.
 
Then sorry, I have no idea. I've never used Crystal on the Web, does anyone else know?

[yinyang] Madawc Williams (East Anglia, UK). Using Windows XP & Crystal 10 [yinyang]
 
Problem solved, to anyone interested this is what happened:

Crystal Reports XI Developer does not perform caching of the query results when working on the web, being that the reason that the query had to be re run evey time a new page was requested.

I solved this problem by generating a dataset with the results of the query which I used to feed the crystalreportviewer.

Luis Torres
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top