ReportDocument rptdoc = new ReportDocument(); private void LoadReports() { using (ReportServicesClient rptservices = new ReportServicesClient()) { if (Session["ReportID"].Equals(2)) { COE coe = new COE(); coe.PersonID = Convert.ToInt32(Session["PersonID"]); DataTable dt = rptservices.GetCertificateOfEmployment(coe); string reportname = @"\Reports\Certificates\CertificateOfEmployment.rpt"; rptdoc.Load(Server.MapPath(reportname)); rptdoc.DataSourceConnections.Clear(); rptdoc.SetDataSource(dt); rptdoc.ExportToHttpResponse(ExportFormatType.PortableDocFormat, HttpContext.Current.Response, false,"" )"); } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)