[]
Specifies the path to the ActiveReports.config or GrapeCity.ActiveReports.config file.
public ReportViewerConfiguration UseConfig(string path)
Type | Name | Description |
---|---|---|
string | path | A string value indicating the path to the configuration file. |
Type | Description |
---|---|
ReportViewerConfiguration | The current ReportViewerConfiguration instance. |
app.UseReportViewer(config =>
{
config.UseConfig("/path/to/ActiveReports.config");
});
Specifies the custom config provider.
public ReportViewerConfiguration UseConfig(IConfigurationProvider provider)
Type | Name | Description |
---|---|---|
IConfigurationProvider | provider | A IConfigurationProvider object representing the custom config provider. |
Type | Description |
---|---|
ReportViewerConfiguration | The current ReportViewerConfiguration instance. |
app.UseReportViewer(config =>
{
// Your implementation of IConfigurationProvider.
config.UseConfig(provider);
});