The requested page is not available for the requested platform. You are viewing the content for Default platform.

ReportServiceController.ShowPreview(String, CriteriaOperator, SortProperty[]) Method

Displays the Preview Report window.

Namespace: DevExpress.ExpressApp.ReportsV2

Assembly: DevExpress.ExpressApp.ReportsV2.v19.1.dll


public void ShowPreview(
    string reportContainerHandle,
    CriteriaOperator criteria,
    SortProperty[] sortProperty
Public Sub ShowPreview(
    reportContainerHandle As String,
    criteria As CriteriaOperator,
    sortProperty As SortProperty()


Name Type Description
reportContainerHandle String

Gets the handle of the ReportContainer object.

criteria CriteriaOperator

A CriteriaOperator object used to filter data.

sortProperty SortProperty[]

An array of SortProperty objects which specifies data sorting.


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