私の勝利フォームアプリケーションから、パラメーターとして int と日時を渡すことができません。渡そうとすると、プログラムでエラーが発生します。ここでは、すべてのパラメーターを文字列とパスとして変換しましたが、レポートは、それぞれのストアド プロシージャからのパラメーターとして、int、date time、date time を受け入れているため、エラー レポートが生成されます。
string ID = "1 ";
string DateStart= DateTime.Today.AddDays(-1).ToString();
string DateEnd= DateTime.Today.ToString();
rptParameters[0] = new Microsoft.Reporting.WinForms.ReportParameter("@ID", ID);
rptParameters[1] = new ReportParameter("@DateStart", DateStart)
rptParameters[2] = new ReportParameter("@DateEnd", DateEnd);
winform から SSRS レポートに文字列パラメータ以外を渡すソリューションはありますか。