Class
ReportTypeResolver

Resolves report instances from .NET type names by creating TypeReportSource objects.

Definition

Namespace:Telerik.Reporting.Services.WebApi

Assembly:Telerik.Reporting.Services.WebApi.dll

Syntax:

cs-api-definition
[Obsolete("The Telerik.Reporting.Services.WebApi.ReportTypeResolver is now obsolete. Please use the Telerik.Reporting.Services.TypeReportSourceResolver class instead.")]
public class ReportTypeResolver : ReportResolverBase, IReportResolver

Inheritance: objectReportResolverBaseReportTypeResolver

Implements: IReportResolver

Inherited Members ReportResolverBase.AddFallbackResolver(IReportResolver)

Constructors

ReportTypeResolver()

Initializes a new instance of the ReportTypeResolver class with default settings.

Declaration

cs-api-definition
public ReportTypeResolver()

Remarks

This constructor creates a resolver that can process type names and convert them to TypeReportSource instances. Consider migrating to TypeReportSourceResolver for new implementations.

Methods

ResolveReport(string)

Resolves a report type name to a TypeReportSource instance for report processing.

Declaration

cs-api-definition
protected override ReportSource ResolveReport(string report)

Parameters

report

string

The fully qualified type name of the report class to resolve.

Returns

ReportSource

A TypeReportSource instance if the type can be resolved successfully; otherwise, null.

Overrides ReportResolverBase.ResolveReport(string)

Remarks

This method attempts to resolve the provided type name using GetType(string) and creates a TypeReportSource with the assembly-qualified name. If the type cannot be found or loaded, returns null. Exception handling is implemented to ensure graceful degradation when type resolution fails.