SQL Server Reporting Services engine decompiled and recompiled for .NET 8. Based on ReportViewer 15.0.1404.0
$ dotnet add package ReportViewerCore.NETCoreThis project is aimed at porting Microsoft SQL Server Reporting Services (Report Viewer) to .NET 6. Sources and examples are available at https://github.com/lkosson/reportviewercore/
Stream reportDefinition; // your RDLC from file or resource
IEnumerable dataSource; // your datasource for the report
LocalReport report = new LocalReport();
report.LoadReportDefinition(reportDefinition);
report.DataSources.Add(new ReportDataSource("source", dataSource));
report.SetParameters(new[] { new ReportParameter("Parameter1", "Parameter value") });
byte[] pdf = report.Render("PDF");