objReportDocument = new ReportDocument();
objIReportDocument = ReportFactory.InitiateReportDocumentCR();
objReportDocument = (ReportDocument)objIReportDocument.GetReportDocument(objReportCallingViewData.ReportInformation.ReportFileName, vParamArrayList, objReportCallingViewData.ReportInformation.ReoprtPath, vFormulaList)
System.IO.MemoryStream vMS;
vMS = (System.IO.MemoryStream)objReportDocument.ExportToStream(ExportFormatType.PortableDocFormat);
Response.Clear();
Response.ClearContent();
Response.ClearHeaders();
Response.Buffer = true;
Response.ContentType = "application/Pdf";
Response.BinaryWrite(vMS.ToArray());
Response.Flush();
Response.End();
vMS.Dispose();
this code was working fine in visual studio 2008 but not working in visual studio 2010 and show an error message 'Output Stream not available when a custom TextWriter is used' please anybody can help me.
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)