Class ReportServiceClient
The proxy to the Telerik Report Service.
Inheritance
Namespace: Telerik.Reporting.Service.SilverlightClient
Assembly: Telerik.ReportViewer.Silverlight.dll
Syntax
public class ReportServiceClient : ClientBase<IReportService>
Constructors
ReportServiceClient()
Initializes a new instance of the System.ServiceModel.ClientBase`1 class using the default target endpoint from the application configuration file.
Declaration
public ReportServiceClient()
Exceptions
System.InvalidOperationException
Either there is no default endpoint information in the configuration file, more than one endpoint in the file, or no configuration file. |
ReportServiceClient(Binding, EndpointAddress)
Initializes a new instance of the ReportServiceClient class using a specified binding and target address.
Declaration
public ReportServiceClient(Binding binding, EndpointAddress remoteAddress)
Parameters
System.ServiceModel.Channels.Binding
binding
The binding used to configure the way that calls are made to the service. |
System.ServiceModel.EndpointAddress
remoteAddress
The address of the service endpoint. |
ReportServiceClient(String)
Initializes a new instance of the ReportServiceClient class using the configuration information specified in the application configuration file by endpointConfigurationName.
Declaration
public ReportServiceClient(string endpointConfigurationName)
Parameters
System.String
endpointConfigurationName
The name of the endpoint in the application configuration file. |
ReportServiceClient(String, EndpointAddress)
Initializes a new instance of the System.ServiceModel.ClientBase`1 class using the specified target address and endpoint information.
Declaration
public ReportServiceClient(string endpointConfigurationName, EndpointAddress remoteAddress)
Parameters
System.String
endpointConfigurationName
The name of the endpoint in the application configuration file. |
System.ServiceModel.EndpointAddress
remoteAddress
The address of the service. |
Exceptions
System.ArgumentNullException
The endpoint is null. |
System.ArgumentNullException
The remote address is null. |
System.InvalidOperationException
The endpoint cannot be found or the endpoint contract is not valid. |
ReportServiceClient(String, String)
Initializes a new instance of the System.ServiceModel.ClientBase`1 class.
Declaration
public ReportServiceClient(string endpointConfigurationName, string remoteAddress)
Parameters
System.String
endpointConfigurationName
The name of the endpoint in the application configuration file. |
System.String
remoteAddress
The address of the service. |
Exceptions
System.ArgumentNullException
The endpoint is null. |
System.ArgumentNullException
The remote address is null. |
System.InvalidOperationException
The endpoint cannot be found or the endpoint contract is not valid. |
ReportServiceClient(Uri)
Initializes a new instance of the ReportServiceClient class using a specified binding and target address and BasicHttpBinding.
Declaration
public ReportServiceClient(Uri reportServiceUri)
Parameters
System.Uri
reportServiceUri
The address of the service endpoint. |
Methods
GetPageAsync(String, Int32)
Starts an asynchronous GetPage operation. This operation is intended for internal use only.
Declaration
public void GetPageAsync(string instanceID, int pageNumber)
Parameters
System.String
instanceID
The unique identifier of the rendering session as returned by a previous call to RenderAndCache operation. |
System.Int32
pageNumber
The serial number of the page to retrieve. |
GetPageAsync(String, Int32, Object)
Starts an asynchronous GetPage operation. This operation is intended for internal use only.
Declaration
public void GetPageAsync(string instanceID, int pageNumber, object userState)
Parameters
System.String
instanceID
The unique identifier of the rendering session as returned by a previous call to RenderAndCache operation. |
System.Int32
pageNumber
The serial number of the page to retrieve. |
System.Object
userState
A user-provided object that distinguishes this particular asynchronous GetPage request from other requests. |
GetReportParametersAsync(String, NameValueDictionary, NameValueDictionary)
Starts an asynchronous GetReportParameters operation. This operation is intended for internal use only.
Declaration
public void GetReportParametersAsync(string report, NameValueDictionary deviceInfo, NameValueDictionary parameters)
Parameters
System.String
report
The System.Type.AssemblyQualifiedName of the report type to render. |
NameValueDictionary
deviceInfo
A NameValueDictionary with settings for the current device. |
NameValueDictionary
parameters
A NameValueDictionary with values for the report parameters. |
GetReportParametersAsync(String, NameValueDictionary, NameValueDictionary, Object)
Starts an asynchronous GetReportParameters operation. This operation is intended for internal use only.
Declaration
public void GetReportParametersAsync(string report, NameValueDictionary deviceInfo, NameValueDictionary parameters, object userState)
Parameters
System.String
report
The System.Type.AssemblyQualifiedName of the report type to render. |
NameValueDictionary
deviceInfo
A NameValueDictionary with settings for the current device. |
NameValueDictionary
parameters
A NameValueDictionary with values for the report parameters. |
System.Object
userState
A user-provided object that distinguishes this particular asynchronous GetReportParameters request from other requests. |
ListAvailableReportsAsync()
Starts an asynchronous ListAvailableReports operation.
Declaration
public void ListAvailableReportsAsync()
ListAvailableReportsAsync(Object)
Starts an asynchronous ListAvailableReports operation.
Declaration
public void ListAvailableReportsAsync(object userState)
Parameters
System.Object
userState
A user-provided object that distinguishes this particular asynchronous ListAvailableReports request from other requests. |
ListRenderingExtensionsAsync()
Starts an asynchronous ListRenderingExtensions operation.
Declaration
public void ListRenderingExtensionsAsync()
ListRenderingExtensionsAsync(Object)
Starts an asynchronous ListRenderingExtensions operation.
Declaration
public void ListRenderingExtensionsAsync(object userState)
Parameters
System.Object
userState
A user-provided object that distinguishes this particular asynchronous ListRenderingExtensions request from other requests. |
RenderAndCacheAsync(String, String, NameValueDictionary, NameValueDictionary)
Starts an asynchronous RenderAndCache operation. This operation is intended for internal use only.
Declaration
public void RenderAndCacheAsync(string format, string report, NameValueDictionary deviceInfo, NameValueDictionary parameters)
Parameters
System.String
format
The render format. |
System.String
report
The System.Type.AssemblyQualifiedName of the report type to render. |
NameValueDictionary
deviceInfo
A NameValueDictionary with setting for the current render format. |
NameValueDictionary
parameters
A NameValueDictionary with values for the report parameters. |
RenderAndCacheAsync(String, String, NameValueDictionary, NameValueDictionary, Object)
Starts an asynchronous RenderAndCache operation. This operation is intended for internal use only.
Declaration
public void RenderAndCacheAsync(string format, string report, NameValueDictionary deviceInfo, NameValueDictionary parameters, object userState)
Parameters
System.String
format
The render format. |
System.String
report
The System.Type.AssemblyQualifiedName of the report type to render. |
NameValueDictionary
deviceInfo
A NameValueDictionary with settings for the current render format. |
NameValueDictionary
parameters
A NameValueDictionary with values for the report parameters. |
System.Object
userState
A user-provided object that distinguishes this particular asynchronous RenderAndCache request from other requests. |
RenderAsync(String, String, NameValueDictionary, NameValueDictionary)
Starts an asynchronous Render operation.
Declaration
public void RenderAsync(string format, string report, NameValueDictionary deviceInfo, NameValueDictionary parameters)
Parameters
System.String
format
The render format. |
System.String
report
The System.Type.AssemblyQualifiedName of the report type to render. |
NameValueDictionary
deviceInfo
A NameValueDictionary with settings for the current render format. |
NameValueDictionary
parameters
A NameValueDictionary with values for the report parameters. |
RenderAsync(String, String, NameValueDictionary, NameValueDictionary, Object)
Starts an asynchronous Render operation.
Declaration
public void RenderAsync(string format, string report, NameValueDictionary deviceInfo, NameValueDictionary parameters, object userState)
Parameters
System.String
format
The render format. |
System.String
report
The System.Type.AssemblyQualifiedName of the report type to render. |
NameValueDictionary
deviceInfo
A NameValueDictionary with settings for the current render format. |
NameValueDictionary
parameters
A NameValueDictionary with values for the report parameters. |
System.Object
userState
A user-provided object that distinguishes this particular asynchronous Render request from other requests. |
Events
GetPageCompleted
Occurs when the GetPage operation is completed. This event is intended for internal use only.
Declaration
public event EventHandler<GetPageEventArgs> GetPageCompleted
Event Type
System.EventHandler<GetPageEventArgs>
|
GetReportParametersCompleted
Occurs when the GetReportParameters operation is completed. This event is intended for internal use only.
Declaration
public event EventHandler<GetReportParametersEventArgs> GetReportParametersCompleted
Event Type
System.EventHandler<GetReportParametersEventArgs>
|
ListAvailableReportsCompleted
Occurs when the ListAvailableReports operation is completed.
Declaration
public event EventHandler<ListAvailableReportsEventArgs> ListAvailableReportsCompleted
Event Type
System.EventHandler<ListAvailableReportsEventArgs>
|
ListRenderingExtensionsCompleted
Occurs when the ListRenderingExtensions operation is completed.
Declaration
public event EventHandler<ListRenderingExtensionsEventArgs> ListRenderingExtensionsCompleted
Event Type
System.EventHandler<ListRenderingExtensionsEventArgs>
|
RenderAndCacheCompleted
Occurs when the RenderAndCache operation is completed. This event is intended for internal use only.
Declaration
public event EventHandler<RenderAndCacheEventArgs> RenderAndCacheCompleted
Event Type
System.EventHandler<RenderAndCacheEventArgs>
|
RenderCompleted
Occurs when the Render operation is completed.
Declaration
public event EventHandler<RenderEventArgs> RenderCompleted
Event Type
System.EventHandler<RenderEventArgs>
|