0
的多個結果我不得不做出一個列表框報告,其中多個結果選擇的ReportViewer列表框
但是當我到DataTable我不知道如何使它顯示結果的不同價值觀。選定的。 這是我的代碼...
protected void CargaReporte(object sender, EventArgs e)
{
dsReportes.SP_REPORTE_EVENTOS_CALENDARIODataTable dt = new dsReportes.SP_REPORTE_EVENTOS_CALENDARIODataTable();
dsReportesTableAdapters.SP_REPORTE_EVENTOS_CALENDARIOTableAdapter da = new dsReportesTableAdapters.SP_REPORTE_EVENTOS_CALENDARIOTableAdapter();
ReportDataSource RD = new ReportDataSource();
List<dynamic> lst = new List<dynamic>();
if (ddUsu.SelectedIndex == 0)
{
foreach (ListItem item in ddUsu.Items)
{
if (item.Selected)
{
da.Fill(dt, int.Parse(ddUsu.SelectedValue));
lst.Add(dt);
}
}
}
else
{
da.Fill(dt, int.Parse(ddUsu.SelectedValue == "" ? "0" : ddUsu.SelectedValue));
}
divReporte.Visible = true;
RD.Value = lst.ToArray();
RD.Name = "dbCalendarioEventos";
rvReporteCalendarioEventos.LocalReport.DataSources.Clear();
rvReporteCalendarioEventos.LocalReport.DataSources.Add(RD);
rvReporteCalendarioEventos.LocalReport.ReportEmbeddedResource = "ReporteCalendarioEventos.rdlc";
rvReporteCalendarioEventos.LocalReport.ReportPath = @"Reportes\Calendario\ReporteCalendarioEventos.rdlc";
rvReporteCalendarioEventos.LocalReport.Refresh();
}
如何填寫具有兩個或多個結果的報告?
我看不到在點擊鏈接的任何圖像。你可以確認嗎? –
https://i.stack.imgur.com/HHcHr.png是一個組合框的圖像,我附加了圖像的URL –