You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Have created a report with two parameters in VS. In Preview my input dates are accepted as dd/MM/yyyy. In SSRS my input dates are also accepted as dd/MM/yyyy.
Have found that it does not seem to matter whether I use either of the following, Both seem to work much the same:
public ActionResult MatchDrawReport()
{
var model = this.GetReportViewerModel(Request);
model.ReportPath = "/Reports/MatchDrawReport";
return View("ReportViewer", model);
}
OR
public ActionResult MatchDrawReport(string namedCalendarDate, string namedRound)
{
var model = this.GetReportViewerModel(Request);
model.ReportPath = "/Reports/MatchDrawReport";
model.AddParameter("CalendarDate", CalendarDate);
model.AddParameter("Round", Round);
return View("ReportViewer", model);
}
In Report Viewer for either of above this format is invalid and throws an error (check parameter).
It will only accept an input of MM/dd/yyyy (which will be very annoying to users).
Have tried DateTime instead of string and .ToString(dd/MM/yyyy) but this gives an error on execution.
Is there a way around this problem please?
I note issue 44 is also about the same thing but that was a year and a half ago. The comment then was ... I saw that you have put "en-us" in your reporthelpers.cs file so I thought there may be a solution via your Report Viewer.
Suspect the "en-us" is the problem.
The text was updated successfully, but these errors were encountered:
Have created a report with two parameters in VS. In Preview my input dates are accepted as dd/MM/yyyy. In SSRS my input dates are also accepted as dd/MM/yyyy.
Have found that it does not seem to matter whether I use either of the following, Both seem to work much the same:
public ActionResult MatchDrawReport()
{
var model = this.GetReportViewerModel(Request);
model.ReportPath = "/Reports/MatchDrawReport";
OR
public ActionResult MatchDrawReport(string namedCalendarDate, string namedRound)
{
var model = this.GetReportViewerModel(Request);
model.ReportPath = "/Reports/MatchDrawReport";
model.AddParameter("CalendarDate", CalendarDate);
model.AddParameter("Round", Round);
return View("ReportViewer", model);
}
In Report Viewer for either of above this format is invalid and throws an error (check parameter).
It will only accept an input of MM/dd/yyyy (which will be very annoying to users).
Have tried DateTime instead of string and .ToString(dd/MM/yyyy) but this gives an error on execution.
Is there a way around this problem please?
I note issue 44 is also about the same thing but that was a year and a half ago. The comment then was ... I saw that you have put "en-us" in your reporthelpers.cs file so I thought there may be a solution via your Report Viewer.
Suspect the "en-us" is the problem.
The text was updated successfully, but these errors were encountered: