[]
Uses a custom report store provider.
public ReportViewerConfiguration UseReportProvider(IReportProvider reportProvider)
Type | Name | Description |
---|---|---|
IReportProvider | reportProvider | The custom report store provider. |
Type | Description |
---|---|
ReportViewerConfiguration | The current ReportViewerConfiguration instance. |
app.UseReportViewer(config =>
{
// Your implementation of IReportProvider.
config.UseReportProvider(reportProvider);
});
Type | Condition |
---|---|
ArgumentNullException | Thrown if |
Uses a custom report simplistic provider.
public ReportViewerConfiguration UseReportProvider(GetReportFn getReport, GetReportDescriptorFn getReportDescriptor)
Type | Name | Description |
---|---|---|
GetReportFn | getReport | A delegate GetReportFn that retrieves the report for the specified report identifier. |
GetReportDescriptorFn | getReportDescriptor | A delegate GetReportDescriptorFn that retrieves the report descriptor for the specified report identifier. |
Type | Description |
---|---|
ReportViewerConfiguration | The current ReportViewerConfiguration instance. |
Stream GetReport(string reportId)
{
// Your implementation of getting a report.
}
ReportDescriptor GetReportDescriptor(string reportId)
{
// Your implementation of getting a report description.
}
app.UseReportViewer(config =>
{
config.UseReportProvider(GetReport, GetReportDescriptor);
});
Type | Condition |
---|---|
ArgumentNullException | Thrown if |