ReportDocument myReportDocument = new ReportDocument();
myReportDocument.Load(Server.MapPath(@"GL_Report\voucher.rpt"));
myReportDocument.SetDataSource(ds);
MemoryStream ms;
ms = (MemoryStream)myReportDocument.ExportToStream(ExportFormatType.PortableDocFormat);
Response.Clear();
Response.Buffer = true;
Response.ContentType = "application/pdf";
Response.BinaryWrite(ms.ToArray());
Response.End();<pre lang="c#">