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

re: class CrystalDecisions.CrystalReports.Engine.ReportDocument

Status
Not open for further replies.

OhioSteve

MIS
Joined
Mar 12, 2002
Messages
1,352
Location
US
I have an asp.net web page that uses the reportDocument class. I declare and instantiate a reportDocument called r. Then I export it to the http response object using this command:

r.ExportToHttpResponse(ExportFormatType.PortableDocFormat, System.Web.HttpContext.Current.Response, False, "")

For most of my reports this works great! However, I have one report that is a real monster. It analyzes 250,000 records and creates a crosstab. This report takes 63 seconds to run on my workstation.

Unfortunately, it takes SIX MINUTES to execute "r.ExportToHttpResponse...." for this report. When it finally does finish, it displays the report perfectly.

I suspect that somehow CR is trying to export the underlying data, not just the image of the crosstab. Is my diagnosis correct? If so, how do I fix it?
 
I did three separate tests using "r.reportOptions..." None of them worked:

r.ReportOptions.EnableSaveDataWithReport = False
r.ReportOptions.EnableSaveSummariesWithReport = False
r.ReportOptions.EnableSaveSummariesWithReport = True
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top