StiJsViewer is not defined in your platform only ?

30 maja 2020 22:08:23
  • Wysłany: 31 sierpnia 2018 21:37
  • 44
Dear Sir

i have try to use stimulsoft tools in my asp core project that working on grand node  - and i do all steps as this video  "https://www.youtube.com/watch?v=KXIJL7aVqWY"

but it's not working always get Error in the console "Uncaught ReferenceError: StiJsViewer is not defined"

Note: i try it in New project without grand Node Platform and it works fine, but i need to make it works on my grand project

so please how can i resolve that ?
0
  • Wysłany: 3 września 2018 08:55
  • Moderator
  • 561
It looks like you want to load this script before jQuery, so it doesn't work. Please check it, but we are not providing support for third part libraries.

Best,
Patryk
Best regards,
Patryk

GrandNode Team
0
  • Wysłany: 13 lutego 2019 19:04
  • 44
i don't add any js files as video i c - if i do all steps in another asp core without grand - it works fine
when i add it to grand only i got the erro when i try to view the report - it's not related to third part - the problem on grand only and i don't know why ?

code only is

controller:
        
        public IActionResult Index()
        {
            return View();
        }

        public IActionResult GetReport()
        {
            var path = StiNetCoreHelper.MapPath(this, "Reports/Report.mrt");
            var str = System.IO.File.ReadAllText(path);
            var report = new StiReport();
            report.LoadFromString(str);

            return StiNetCoreViewer.GetReportResult(this, report);
        }

        public IActionResult ViewerEvent()
        {
            return StiNetCoreViewer.ViewerEventResult(this);
        }


cshtml file
@using Stimulsoft.Report.Web;
@using Stimulsoft.Report.Mvc;

@Html.StiNetCoreViewer(new StiNetCoreViewerOptions()
{
    Actions =
    {
        GetReport = "GetReport",
        ViewerEvent = "ViewerEvent"
    }
})


and i have install stimulsoft.reports.web.netcore from nuget - that all what i did

so please hope to get help with that
0
  • Wysłany: 14 lutego 2019 09:58
  • Moderator
  • 561
We are not familiar with StiJsViewer, maybe you should consider developer support services?
Best regards,
Patryk

GrandNode Team
0
back to top
Filters