ActiveReports 18 .NET Edition
Developers / Configure ActiveReports Using Code
In This Topic
    Configure ActiveReports Using Code
    In This Topic

    The configuration for the viewer and the designer can be set at runtime by using UseConfig(IConfigurationProvider) method in the Startup.cs file.

    Startup.cs
    Copy Code
     app.UseReportViewer(settings =>
     {
         settings.UseFileStore(ReportsDirectory);
         settings.UseConfig(new ConfigurationProvider(Path.Combine(CurrentDir, "ActiveReports.config")));
     });
    
    See Also