Class ReportTypeResolver
Resolves report instances from .NET type names by creating TypeReportSource objects.
Inherited Members
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
Remarks
This class is obsolete and has been replaced by TypeReportSourceResolver. It provides backward compatibility for applications that reference reports by their fully qualified type names. New applications should use the updated TypeReportSourceResolver class for improved functionality and support.
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
|
System.String
report
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
Remarks
This method attempts to resolve the provided type name using System.Type.GetType(System.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.