i'm using net core 3.1 and stimulsoft report 2020
i have report controller in unit area like this:
Code: Select all
[Area("Unit")]
public class ReportController : Controller
{
public IActionResult View1(int id)
{
return View();
}
public IActionResult GetReport(int id)
{
// some logic
}
public IActionResult ViewerEvent()
{
return StiNetCoreViewer.ViewerEventResult(this);
}
}
Code: Select all
@using Stimulsoft.Report.Mvc
@using Stimulsoft.Report.Web
@{
ViewData["Title"] = "View1";
}
@Html.StiNetCoreViewer("id1", new StiNetCoreViewerOptions()
{
Actions =
{
GetReport = "GetReport",
ViewerEvent = "ViewerEvent",
},
Server =
{
Controller = "Report",
RouteTemplate = "Unit/Report/{action}/{id?}"
},
Appearance =
{
FullScreenMode = false,
BookmarksPrint = false ,
RightToLeft = true
},
Toolbar = {
ShowPrintButton = false,
ShowOpenButton = false,
ShowFullScreenButton = false ,
ShowSaveButton = false ,
ShowAboutButton = false ,
ViewMode = StiWebViewMode.Continuous,ShowFindButton = false,
}
})