ReportDocument rptDoc = new ReportDocument(); MemoryStream oStream = default(MemoryStream); oStream=(MemoryStream)rptDoc.ExportToStream(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat); HttpContext.Current.Response.Clear(); HttpContext.Current.Response.Buffer = true; HttpContext.Current.Response.ContentType = "application/pdf"; HttpContext.Current.Response.BinaryWrite(oStream.ToArray()); HttpContext.Current.Response.End(); rptDoc.Close(); rptDoc.Dispose();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)