-
Notifications
You must be signed in to change notification settings - Fork 204
ASP NET Core MVC
Peter Gill edited this page Jun 7, 2026
·
3 revisions
dotnet add package Majorsilence.Reporting.RdlAsp.MvcBuilt-in routes:
-
/msr/RdlList— lists all reports found in the reports folder -
/msr/RdlReport/ShowFile/{reportFile}/{type?}— generate the report
Call RdlEngineConfig.RdlEngineConfigInit() once during app startup, before the first report is generated.
using Majorsilence.Reporting.Rdl;
var builder = WebApplication.CreateBuilder(args);
// ...
var app = builder.Build();
// One time per app instance
RdlEngineConfig.RdlEngineConfigInit();
// ...
app.Run();Specify the report folder in appsettings.json:
{
"Settings": {
"ReportsFolder": "Reports/"
}
}For a working example see Majorsilence.Reporting.WebExample.
note: the asp.net core mvc integration is still a work in progress