New to Telerik ReportingStart a free 30-day trial

Creates an relative path to .trdx/.trdp file from UriReportSource instance.

Definition

Namespace:Telerik.ReportViewer.Mvc

Assembly:Telerik.ReportViewer.Mvc.dll

Syntax:

C#
[Obsolete]
public class FileReportSourceResolver : ReportSourceResolver, IReportResolver

Inheritance: objectReportSourceResolverFileReportSourceResolver

Implements: IReportResolver

Constructors

Initializes a new instance of the FileReportSourceResolver class.

C#
public FileReportSourceResolver()

Initializes a new instance of the FileReportSourceResolver class.

C#
public FileReportSourceResolver(IReportResolver parent, string basePath)
Parameters:parentIReportResolver

The fallback resolver

basePathstring

Physical directory where .trdx/.trdp reports are located. Used as path prefix when relative path is passed for resolving.

Initializes a new instance of the FileReportSourceResolver class.

C#
public FileReportSourceResolver(string basePath)
Parameters:basePathstring

Physical directory where .trdx/.trdp reports are located. Used as path prefix when relative path is passed for resolving.

Methods

Determines if a ReportSource can be resolved as a UriReportSource.

C#
protected override bool CanResolve(ReportSource reportSource)
Parameters:reportSourceReportSource

The ReportSource to be resolved.

Returns:

bool

True if the ReportSource can be resolved as UriReportSource. Otherwise returns false.

Overrides: ReportSourceResolver.CanResolve(ReportSource)

Resolves the ReportSource as UriReportSource to string.

C#
protected override string Resolve(ReportSource reportSource)
Parameters:reportSourceReportSource

The ReportSource to be resolved.

Returns:

string

The resolved ReportSource as string.

Overrides: ReportSourceResolver.Resolve(ReportSource)