0
日付の範囲:開始日と終了日に基づいてデータを表示するレポートがあります。これらは、データセットに供給されるパラメータです。これらのパラメータを傍受してレポートに供給する方法はありますか?ここでSQLパラメータを取得してasp.netレポートに表示します
は私のコードです:
reportViewer1.LocalReport.DataSources.Clear();
ReportDataSource rds2 = new ReportDataSource("DataSet1", ods);
reportViewer1.LocalReport.DataSources.Add(rds2);
ods.SelectMethod = "GetTransactionByDateRange";
ods.TypeName = "ConsumablesTransactionLogBLL";
ods.SelectParameters.Add("sd", System.TypeCode.String, dateRange[0]);
ods.SelectParameters.Add("ed", System.TypeCode.String, dateRange[1]);
reportViewer1.LocalReport.ReportPath = Server.MapPath("~/Reports/Consumables_By_Range.rdlc");
はRisho