ReportServiceController.ShowPreview(String, SortProperty[]) Method
In This Article
Displays the Preview Report window.
Namespace: DevExpress.ExpressApp.ReportsV2
Assembly: DevExpress.ExpressApp.ReportsV2.v24.2.dll
NuGet Package: DevExpress.ExpressApp.ReportsV2
#Declaration
public void ShowPreview(
string reportContainerHandle,
SortProperty[] sortProperty
)
#Parameters
Name | Type | Description |
---|---|---|
report |
String | Gets the handle of the Report |
sort |
Sort |
An array of Sort |
#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