The following example shows how to configure the SqlReportViewer control to display a single report.
Example
Description
SqlReportViewer by default is configured to run with report browser enabled. In order to run SqlReportViewer in single report scenario, you will need to disable the report browser feature.
Code
The following code shows how to disable the SqlReportViewer report browser functionality by customizing the CanUserShowReportList and EnableAutomaticListFetching property.
View | ![]() |
---|---|
<Intersoft:SqlReportViewer ... CanUserShowReportList="False" EnableAutomaticListFetching="False" /> |