[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.Web.Viewer.ReportViewerConfiguration.UseResourceProvider

UseResourceProvider Method

UseResourceProvider(IReportResourceProvider)

Uses a custom resource store provider.

Declaration
public ReportViewerConfiguration UseResourceProvider(IReportResourceProvider reportResourcesPro)
Parameters
Type Name Description
IReportResourceProvider reportResourcesPro

A IReportResourceProvider object representing the custom resource store provider.

Returns
Type Description
ReportViewerConfiguration

The current ReportViewerConfiguration instance.

Examples
app.UseReportViewer(config =>
{
	// Your implementation of IReportResourceProvider.
	config.UseResourceProvider(reportResourcesPro);
});
Exceptions
Type Condition
ArgumentNullException

Thrown if reportResourcesPro is null.

UseResourceProvider(GetResourceFn)

Uses a custom resource store provider.

Declaration
public ReportViewerConfiguration UseResourceProvider(GetResourceFn getResource)
Parameters
Type Name Description
GetResourceFn getResource

A delegate GetResourceFn that retrieves the resource based on the specified resource information

Returns
Type Description
ReportViewerConfiguration

The current ReportViewerConfiguration instance.

Examples
Stream GetResource(ResourceInfo resource)
{
	// Your implementation of getting a resource.
}

app.UseReportViewer(config =>
{
	config.UseResourceProvider(GetResource);
});
Exceptions
Type Condition
ArgumentNullException

Thrown if getResource is null.