Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

ReportExecutionService.Sort Method

Applies or removes a sort for the execution based on a user sort action.

Namespace:  ReportExecution2005
Assembly:  ReportExecution2005 (in ReportExecution2005.dll)
[SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)]
[SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices/Sort", RequestNamespace = "http://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices", 
	ResponseNamespace = "http://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices", 
	Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public int Sort(
	string SortItem,
	SortDirectionEnum Direction,
	bool Clear,
	out string ReportItem,
	out int NumPages


Type: System.String
The ID of the report item on which to sort.
Type: ReportExecution2005.SortDirectionEnum
A SortDirectionEnum value containing the direction for the sort. The default value is None.
Type: System.Boolean
A Boolean value that indicates whether all other existing sorts should be cleared. The default is false.
Type: System.String%
[out] The ID of the item on the page used for positioning in the viewing area.
Type: System.Int32%
[out] The new total number of pages in the report.

Return Value

Type: System.Int32
An integer value containing the new page number on which the item passed in the ReportItem parameter falls.

The table below shows header and permissions information on this operation.

SOAP Header Usage

(In) TrustedUserHeaderValue

(In) ExecutionHeaderValue

(Out) ServerInfoHeaderValue

Native Mode Required Permissions


SharePoint Mode Required Permissions


Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.