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 ?
StiJsViewer is not defined in your platform only ?
Friday, December 27, 2024 8:07:20 AM
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:
cshtml file
and i have install stimulsoft.reports.web.netcore from nuget - that all what i did
so please hope to get help with that
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