Hi to all,
I have Asp.net 2.0-C# and Crystal report 11 SP2.
I wrote the cutom code for export to excel, it's working fine with 14 records, if it exceed more than 14 then it's hanged in this bolded code
strmRptDocument= new MemoryStream();
strmRptDocument = (MemoryStream)boReportDocument.ExportToStream(CrystalDecisions.Shared.ExportFormatType.Excel);
vwPage.Response.Clear();
vwPage.Response.Buffer = true;
vwPage.Response.ContentType = "application/vnd.ms-excel";
vwPage.Response.AddHeader("content-disposition", "attachment; filename=" + strExcelFileName);
vwPage.Response.BinaryWrite(strmRptDocument.ToArray());
HttpContext.Current.ApplicationInstance.CompleteRequest();
May i know what is the problem and how solve this.