public void CallReportEstaciones(string Fecha, string protocolo) { ReporteDataSet rpdset = new ReporteDataSet(); rpdset.EnforceConstraints = false; ReporteDataSetTableAdapters.spReporteEstacionesTableAdapter spAdapterEst = new ReporteDataSetTableAdapters.spReporteEstacionesTableAdapter(); RptVwrEstacion.Reset(); RptVwrEstacion.ProcessingMode = Microsoft.Reporting.WebForms.ProcessingMode.Local; RptVwrEstacion.LocalReport.ReportPath = "Reportes/ReportEstaciones.rdlc"; RptVwrEstacion.LocalReport.DataSources.Clear(); Microsoft.Reporting.WebForms.ReportDataSource DataSourseRp = new Microsoft.Reporting.WebForms.ReportDataSource(); DataSourseRp.Name = "EstDataSet"; DataSourseRp.Value = rpdset.spReporteEstaciones; spAdapterEst.Fill(rpdset.spReporteEstaciones, Fecha, protocolo); RptVwrEstacion.LocalReport.DataSources.Add(DataSourseRp); RptVwrEstacion.LocalReport.Refresh(); }
public void CallReport(long FechaIni, long FechaFin, bool Lmbr, bool Est, bool Estr) { ReporteDataSet rp = new ReporteDataSet(); rp.EnforceConstraints = false; ReporteDataSetTableAdapters.spReporteMedicionesTableAdapter spAdapter = new ReporteDataSetTableAdapters.spReporteMedicionesTableAdapter(); ReportViewer1.Reset(); ReportViewer1.ProcessingMode = Microsoft.Reporting.WebForms.ProcessingMode.Local; ReportViewer1.LocalReport.ReportPath = "Reportes/ReportMediciones.rdlc"; ReportViewer1.LocalReport.DataSources.Clear(); Microsoft.Reporting.WebForms.ReportDataSource DataSourseRepo = new Microsoft.Reporting.WebForms.ReportDataSource(); DataSourseRepo.Name = "ReportDataSet"; DataSourseRepo.Value = rp.spReporteMediciones; spAdapter.Fill(rp.spReporteMediciones, FechaIni, FechaFin, Lmbr, Est, Estr); ReportViewer1.LocalReport.DataSources.Add(DataSourseRepo); FindControl(); ReportViewer1.LocalReport.Refresh(); }