ASP.NET provides downloads directly from the crystal report.
..................................
Case "PDF" Exp.ExportFormattype = ExportFormattype.portabledocformat Exp.FormatOptions = New PdfrtfwordFormatoptions () filename = "PDF"
.......................................
DIM Req as new exportRequestContext ()
req.ExportInfo = exp Dim st As System.IO.Stream st = rdRpt_1.FormatEngine.ExportToStream (req) Page.Response.ClearHeaders () Page.Response.ClearContent () Page.Response.ContentType = "application / x-msdownload" Page.Response.addheader ("Content-Disposition", "Attachment; FileName =" & FileName)
DIM B (St.Toint32) AS BYTE St.Read (b, 0, convert.toint32 (st.ens)) Page.Response.binaryWrite (b) Page.Response.end () st.close ( )