Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- System.IO.MemoryStream stream = new System.IO.MemoryStream();
- stream = (System.IO.MemoryStream)this.Report.ExportToStream(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat);
- this.Response.Clear();
- this.Response.Buffer = true;
- this.Response.ContentType = "application/pdf";
- this.Response.BinaryWrite(stream.ToArray());
- this.Response.End();
- Content-Disposition: inline; filename=foo.pdf
- System.IO.MemoryStream stream = new System.IO.MemoryStream();
- stream = (System.IO.MemoryStream)this.Report.ExportToStream(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat);
- this.Response.Clear();
- this.Response.Buffer = true;
- this.Response.ContentType = "application/pdf";
- this.Response.AddHeader("Content-Disposition", "attachment; filename=""+FILENAME+""");
- this.Response.BinaryWrite(stream.ToArray());
- this.Response.End();
Add Comment
Please, Sign In to add comment