when I preview it on the designer it shows up correctly but when I use it on a asp.net core project the variables show up and I can interact with them
but the value shows up as NaN.NaN.NaN on both dates
my code on the controller is
Code: Select all
public IActionResult GetReport()
{
var reportParameters = new Hashtable();
reportParameters["FromDate"] = DateTime.Now.Date;
reportParameters["ToDate"] = DateTime.Now.Date;
string reportString = System.IO.File.ReadAllText(_hostEnvironment.WebRootPath + "\\reports\\DailySalesDetail.mrt");
return StiNetCoreViewer.GetReportResult(this, reportString, reportParameters);
}
is this a bug or am I missing something