The Web Report Viewer supports all common browser types. Thus, it can be used on clients with different operating systems. It allows interactive input through drilldown and report parameters.
Important Hint
the objects defined in the Designer and their properties cannot always be fully transferred to any export format. The Web Report Viewer uses the List & Label XHTML/CSS Export module internally for displaying reports. For this reason, the limitations of the XHTML/CSS Export module also apply directly to the Web Report Viewer.
Then create a new controller as usual - in the following the name MyWebReportViewerController is used as an example. Derive the controller from the WebReportViewerController class:
Then implement the two abstract methods OnProvideListLabel and OnProvideRepository. Pass your List & Label instance with matching data source and temporary export path repectively the Repository to be used in the respective arguments provided.
For redistribution it is important that additionally the List & Label license key (see also LicensingInfo) is specified in OnProvideListLabel() for the List & Label instance.
Note: For a detailed implementation for DefaultSettings.GetRepository() in OnProvideRepository(), see the provided ASP.NET examples.
The further procedure differs for .NET 6/.NET 8/.NET 9 and .NET 4.8.
.NET 6/.NET 8/.NET 9:
If you see a startup.cs file (otherwise see below), add the following lines to the end of the Configure method:
If there is no startup.cs you should have a program.cs in .NET 6. In this case, add app.UseWebReportViewer(); right after any other app.Use... call and add builder.Services.AddWebReportViewer(); right after any other builder.Services... call.
.NET 4.8:
In the global.asax.cs/global.asax.vb file, add the following line before the RouteConfig.RegisterRoutes() call:
The configuration is now complete. Now the Web Report Viewer can be inserted and used in the desired view as follows:
The List & Label installation contains corresponding ASP.NET examples that show the use of the Web Report Viewer in detail.