Class UriReportSource
Represents a report source that loads a report document from a URI. The URI must point to a physical TRDX, TRDP or TRBP file.
Inherited Members
Namespace: Telerik.Reporting
Assembly: Telerik.Reporting.dll
Syntax
public class UriReportSource : ReportSource, IExpressionContainer, ICloneable
Examples
The following example demonstrates how to create a UriReportSource:
var uriReportSource = new Telerik.Reporting.UriReportSource();
// Specifying an URL or a file path
uriReportSource.Uri = "SampleReport.trdp";
// Adding the initial parameter values
uriReportSource.Parameters.Add(new Telerik.Reporting.Parameter("OrderNumber", "SO43659"));
Dim uriReportSource As New Telerik.Reporting.UriReportSource()
' Specifying an URL or a file path
uriReportSource.Uri = "SampleReport.trdp"
' Adding the initial parameter values
uriReportSource.Parameters.Add(New Telerik.Reporting.Parameter("OrderNumber", "SO43659"))
Constructors
UriReportSource()
Properties
Uri
Gets or sets the URI to load the report document from.
Declaration
public string Uri { get; set; }
Property Value
|
System.String
|
Remarks
A URI.
This property can accept an expression when the report source is used in a SubReport item or a NavigateToReportAction action.
Methods
Create(String, String)
Creates a UriReportSource by resolving the relative report path against the base path.
Declaration
public static UriReportSource Create(string basePath, string reportPath)
Parameters
|
System.String
basePath
The base path to resolve against. |
|
System.String
reportPath
The relative path to the report. |
Returns
|
UriReportSource
A UriReportSource with the resolved URI, or null if the path cannot be resolved. |
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 UriReportSource and its value is the same as this instance; otherwise, false. |
Overrides
GetHashCode()
Returns the hash code for this UriReportSource.
Declaration
public override int GetHashCode()
Returns
|
System.Int32
A 32-bit signed integer hash code. |
Overrides
ToString()
Returns a string that represents the current UriReportSource.
Declaration
public override string ToString()
Returns
|
System.String
A string that represents the Uri of this UriReportSource. |