There is display problem when using response cache
Startup.cs
Code: Select all
app.UseResponseCaching();
Controller
Code: Select all
public class ReportsController : Controller
{
public IActionResult Index(string idLink = null)
{
return View("~/Views/Report/Index.cshtml");
}
public IActionResult ViewerEvent()
{
return StiNetCoreViewer.ViewerEventResult(this);
}
//[HttpGet("~/[action]")]
public async Task<IActionResult> GetReport(string idLink = null)
{
var report = await InternalGetReportAndBindAsync();
return StiNetCoreViewer.GetReportResult(this, report);
}
}
Code: Select all
@using Stimulsoft.Report.Mvc;
@{
ViewData["Title"] = "Report";
Layout = "_LayoutPrint";
}
@Html.StiNetCoreViewer(new StiNetCoreViewerOptions
{
Localization = "Localization/ka.xml",
Server = new StiNetCoreViewerOptions.ServerOptions
{
RouteTemplate = "Reports/{action}",
},
Actions =
{
GetReport = "GetReport",
ViewerEvent = "ViewerEvent",
},
Appearance =
{
FullScreenMode = true,
},
Toolbar =
{
ShowFullScreenButton = false,
},
})