MESCIUS.ActiveReports.Web.Viewer Assembly / GrapeCity.ActiveReports.Web.Viewer Namespace / ReportViewerConfiguration Class / UseResourceProvider Method / UseResourceProvider(GetResourceFn) Method
A delegate GetResourceFn that retrieves the resource based on the specified resource information
Example

UseResourceProvider(GetResourceFn) Method
Uses a custom resource store provider.
Syntax
'Declaration
 
Public Overloads Function UseResourceProvider( _
   ByVal getResource As GetResourceFn _
) As ReportViewerConfiguration
 

Parameters

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

Return Value

The current ReportViewerConfiguration instance.
Exceptions
ExceptionDescription
Thrown if getResource is null.
Example
Stream GetResource(ResourceInfo resource)
{
	// Your implementation of getting a resource.
}
            
app.UseReportViewer(config =>
{
	config.UseResourceProvider(GetResource);
});
See Also