Class TypeReportSource
Represents a report source that allows a report document to be instantiated from an System.Type.AssemblyQualifiedName.
Inherited Members
Namespace: Telerik.Reporting
Assembly: Telerik.Reporting.dll
Syntax
public class TypeReportSource : ReportSource, IExpressionContainer, ICloneable
Examples
The following example shows how to create a TypeReportSource:
var typeReportSource = new Telerik.Reporting.TypeReportSource();
// Specifying the assembly qualified name of the Report class for the TypeName of the report source
typeReportSource.TypeName = typeof(Invoice).AssemblyQualifiedName;
// Adding the initial parameter values
typeReportSource.Parameters.Add(new Telerik.Reporting.Parameter("OrderNumber", "SO43659"));
Dim typeReportSource As New Telerik.Reporting.TypeReportSource()
' Specifying the assembly qualified name of the Report class for the TypeName of the report source
typeReportSource.TypeName = GetType(Invoice).AssemblyQualifiedName
' Adding the initial parameter values
typeReportSource.Parameters.Add(New Telerik.Reporting.Parameter("OrderNumber", "SO43659"))
Constructors
TypeReportSource()
Properties
TypeName
Gets or sets the assembly qualified type name of the report document.
Declaration
public string TypeName { get; set; }
Property Value
|
System.String
|
Remarks
Use this property to specify the type name of the report document. Must be the assembly qualified name of the System.Type of the report.
The target type should implement the IReportDocument interface and should have a default (parameterless) constructor. The default constructor is used from the reporting engine to create the report instance.
This property can accept an expression when the report source is used in a SubReport item or a NavigateToReportAction action.
Methods
Equals(Object)
Determines whether this instance and a specified object have the same value.
Declaration
public override bool Equals(object obj)
Parameters
|
System.Object
obj
The object to compare with this instance. |
Returns
|
System.Boolean
true if obj is a TypeReportSource and its value is the same as this instance; otherwise, false. |
Overrides
GetHashCode()
Returns the hash code for this TypeReportSource.
Declaration
public override int GetHashCode()
Returns
|
System.Int32
A 32-bit signed integer hash code. |
Overrides
ToString()
Returns a string that represents the current TypeReportSource.
Declaration
public override string ToString()
Returns
|
System.String
A string that represents the TypeName of this TypeReportSource. |