Class
FileReportSourceResolver

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

Definition

Namespace:Telerik.ReportViewer.Mvc

Assembly:Telerik.ReportViewer.Mvc.dll

Syntax:

cs-api-definition
[Obsolete]
public class FileReportSourceResolver : ReportSourceResolver, IReportResolver

Inheritance: objectReportSourceResolverFileReportSourceResolver

Implements: IReportResolver

Constructors

FileReportSourceResolver()

Initializes a new instance of the FileReportSourceResolver class.

Declaration

cs-api-definition
public FileReportSourceResolver()

FileReportSourceResolver(IReportResolver, string)

Initializes a new instance of the FileReportSourceResolver class.

Declaration

cs-api-definition
public FileReportSourceResolver(IReportResolver parent, string basePath)

Parameters

parent

IReportResolver

The fallback resolver

basePath

string

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

FileReportSourceResolver(string)

Initializes a new instance of the FileReportSourceResolver class.

Declaration

cs-api-definition
public FileReportSourceResolver(string basePath)

Parameters

basePath

string

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

Methods

CanResolve(ReportSource)

Determines if a ReportSource can be resolved as a UriReportSource.

Declaration

cs-api-definition
protected override bool CanResolve(ReportSource reportSource)

Parameters

reportSource

ReportSource

The ReportSource to be resolved.

Returns

bool

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

Overrides ReportSourceResolver.CanResolve(ReportSource)

Resolve(ReportSource)

Resolves the ReportSource as UriReportSource to string.

Declaration

cs-api-definition
protected override string Resolve(ReportSource reportSource)

Parameters

reportSource

ReportSource

The ReportSource to be resolved.

Returns

string

The resolved ReportSource as string.

Overrides ReportSourceResolver.Resolve(ReportSource)