Example #1
0
 public void ShowErrorMessage()
 {
     ReportViewer4.LocalReport.DataSources.Clear();
     ReportViewer4.LocalReport.DataSources.Add(new ReportDataSource("", new DataTable()));
     ReportViewer4.LocalReport.ReportPath = Server.MapPath("~/" + "Report//rpt//blank.rdlc");
     ReportViewer4.DataBind();
     ReportViewer4.LocalReport.Refresh();
 }
Example #2
0
        public void GenerateReportDocument(dynamic reportParam, string reportType, DataTable data)
        {
            string dsName = reportParam.DataSetName;

            ReportViewer4.LocalReport.DataSources.Clear();
            ReportViewer4.LocalReport.DataSources.Add(new ReportDataSource(dsName, data));
            ReportViewer4.LocalReport.ReportPath = Server.MapPath("~/" + "Report//rpt//" + reportParam.RptFileName);
            ReportViewer4.DataBind();
            ReportViewer4.LocalReport.Refresh();
        }
        protected void btnbuscar3_Click(object sender, EventArgs e)
        {
            ObtenerIndicadorNivelCumplimientoTest();
            DataTable table = ConvertListToDataTable3(Indicadores3);

            ReportViewer4.Reset();

            ReportViewer4.LocalReport.ReportPath = Server.MapPath("~/Content/Report/Report3.rdlc");
            ReportDataSource rds = new ReportDataSource("DataSet", table);

            ReportViewer4.LocalReport.DataSources.Clear();
            ReportViewer4.LocalReport.DataSources.Add(rds);
            ReportViewer4.DataBind();
            ReportViewer4.LocalReport.Refresh();
        }