AspNetCore.Reporting 兑现问题

AspNetCore.Reporting cashing issue

我尝试使用 AspNetCore.Reporting 库在 asp 核心 5 应用程序中进行报告, 这是我的代码:

        public IActionResult Print()
        {
            LocalReport newReport = new LocalReport(_env.WebRootPath + "/Reports/RenterAmount.rdlc");
            Dictionary<string, string> parameters = new Dictionary<string, string>();
            parameters.Add("Name", "Here Name");
            var viewReport = newReport.Execute(RenderType.Pdf, 1, null, "");
            return File(viewReport.MainStream, "application/pdf");

        }

现在使用它时,因为它在其他操作中使用多个报告时会导致兑现问题,我做了一些关于问题的搜索,有一些解决方案说:应该使用执行报告到单独的过程中,如 Tmds.ExecFunction 库,但在 asp 核心应用程序中使用它并不容易,或者我没有使用经验,或者使用报告执行到控制台应用程序但我也不能这样做并执行控制台应用程序在 asp 核心应用程序中,请帮助我解决 AspNetCore.Reporting 核心应用程序

中的 AspNetCore.Reporting 现金问题的完整解决方案

刚刚移动到使用 ReportViewerCore.NETCore 库