Skip to main content
.NET 8.0+

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

ReportServiceController.ShowPreview(String, SortProperty[]) Method

Displays the Preview Report window.

Namespace: DevExpress.ExpressApp.ReportsV2

Assembly: DevExpress.ExpressApp.ReportsV2.v24.2.dll

#Declaration

public void ShowPreview(
    string reportContainerHandle,
    SortProperty[] sortProperty
)

#Parameters

Name Type Description
reportContainerHandle String

Gets the handle of the ReportContainer object.

sortProperty SortProperty[]

An array of SortProperty objects which specifies data sorting.

#Remarks

An example of using this method is provided in the Invoke the Report Preview from Code topic.

The ShowPreview method throws an InvalidCastException if you use a custom data source that does not support the ISupportSorting interface. In this instance, use the ReportDataSourceHelper.CustomSetSorting event to specify sorting.

See Also