Click here to Skip to main content
Sign Up to vote bad
good
See more: C#
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.
Posted 18 Dec '12 - 17:17
Edited 19 Dec '12 - 17:06


1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 OriginalGriff 296
1 Mohammed Hameed 183
2 Sergey Alexandrovich Kryukov 143
3 Santhosh G_ 108
4 Mayur_Panchal 98
0 Sergey Alexandrovich Kryukov 8,216
1 OriginalGriff 6,271
2 CPallini 3,528
3 Rohan Leuva 2,703
4 Maciej Los 2,234


Advertise | Privacy | Mobile
Web02 | 2.6.130516.1 | Last Updated 20 Dec 2012
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid