class CrystalDecisions.CrystalReports.Engine.ReportDocumenthttp://forums.asp.net/t/1133194.aspx/1?class+CrystalDecisions+CrystalReports+Engine+ReportDocumentFri, 13 Jul 2007 12:30:56 -040011331941802272http://forums.asp.net/p/1133194/1802272.aspx/1?class+CrystalDecisions+CrystalReports+Engine+ReportDocumentclass CrystalDecisions.CrystalReports.Engine.ReportDocument <p>I have an asp.net web page that uses the reportDocument class.&nbsp;&nbsp; I declare and instantiate a reportDocument called r.&nbsp; Then I export it to the http response object using this command:</p> <p>r.ExportToHttpResponse(ExportFormatType.PortableDocFormat, System.Web.HttpContext.Current.Response, False, &quot;&quot;)</p> <p>For most of my reports this works great! The report appears in a web page almost instantly. </p> <p>However, I have one report that is a real monster.&nbsp; It analyzes 250,000 records and creates a crosstab.&nbsp; This report takes 63 seconds to run on my workstation using my personal copy of CR. </p> <p>Unfortunately, it takes SIX MINUTES to execute &quot;r.ExportToHttpResponse....&quot; for this report on the web server.&nbsp; However, when it finally does finish, the report's data is accurate.</p> <p>I suspected that somehow CR was trying to export the underlying data, not just the image of the crosstab.&nbsp; So I tried three different times to stop that behavior.&nbsp; I tried each of the three lines below (separately) but none of them worked.</p> <p>r.ReportOptions.EnableSaveDataWithReport = False<br> r.ReportOptions.EnableSaveSummariesWithReport = False<br> r.ReportOptions.EnableSaveSummariesWithReport = True</p> <p>I really want to pound down that execution time from six minutes to one minute.&nbsp; I look forward to your feedback on this issue.<br> </p> 2007-07-13T12:30:56-04:00