ActiveReports 19 .NET Edition
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

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

    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