Page 1 of 2

asp.net core Date Variable shows as NaN.NaN.NaN

Posted: Fri Nov 10, 2017 10:02 pm
by angelcalvasp
I have declared two variables Fromdate and TwoDate in a report in the report designer as so
Variable.png
Variable.png (12.83 KiB) Viewed 5326 times
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
Generated report.png
Generated report.png (15.31 KiB) Viewed 5326 times
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

Re: asp.net core Date Variable shows as NaN.NaN.NaN

Posted: Mon Nov 13, 2017 9:11 pm
by Alex K.
Hello,

We couldn't reproduce this bug.
Please try to check the last release

Thank you.

Re: asp.net core Date Variable shows as NaN.NaN.NaN

Posted: Wed Nov 15, 2017 10:42 pm
by angelcalvasp
I have attached a sample project with the Nuget Package up to date, the problem still persists,

the current version of the Designer Im using is
Stimulsoft Designer Version.png
Stimulsoft Designer Version.png (8.26 KiB) Viewed 5310 times

Re: asp.net core Date Variable shows as NaN.NaN.NaN

Posted: Thu Nov 16, 2017 3:39 pm
by HighAley
Hello.

Our latest build is 2017.2.4.
Please, upgrade to this build and let us know about results.

Thank you.

Re: asp.net core Date Variable shows as NaN.NaN.NaN

Posted: Mon Dec 04, 2017 4:33 pm
by angelcalvasp
Version 2018.1.1 and problem still persists, Could it be a Bug on the .net core version of the package?

Re: asp.net core Date Variable shows as NaN.NaN.NaN

Posted: Wed Dec 06, 2017 4:01 pm
by HighAley
Hello.

We will make additional analysis of your project and will answer you soon.

Thank you.

Ticket reference: #5486

Re: asp.net core Date Variable shows as NaN.NaN.NaN

Posted: Wed Dec 06, 2017 7:30 pm
by angelcalvasp
This little thing is the only thing thats keeping me from getting the reporting tools

Re: asp.net core Date Variable shows as NaN.NaN.NaN

Posted: Fri Dec 08, 2017 2:00 pm
by Alex K.
Hello,

We are working on the problem. We will let you know when the solution is available.

Thank you.

Re: asp.net core Date Variable shows as NaN.NaN.NaN

Posted: Tue Dec 19, 2017 6:52 am
by HighAley
Hello.

We have made an improvement.
Please, check the 2018.1.4 build.
You could update JS scripts only.

Thank you.

Re: asp.net core Date Variable shows as NaN.NaN.NaN

Posted: Tue Dec 19, 2017 10:36 pm
by angelcalvasp
Ill check it out