ClassReportTypeResolver
Resolves report instances from .NET type names by creating TypeReportSource objects.
Definition
Namespace:Telerik.Reporting.Services.WebApi
Assembly:Telerik.Reporting.Services.WebApi.dll
Syntax:
[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:
Inherited Members
Constructors
ReportTypeResolver()
Initializes a new instance of the ReportTypeResolver class with default settings.
Declaration
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
protected override ReportSource ResolveReport(string report)
Parameters
report
string
The fully qualified type name of the report class to resolve.
Returns
A TypeReportSource instance if the type can be resolved successfully; otherwise, null.
Overrides
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.