Another way to preview a report is to run the report project in a debug configuration, for example, to debug custom assemblies that you write. There are three ways to run a project:
-
By clicking Start on the Debug menu.
-
By clicking the Start button on the Visual Studio standard toolbar.
-
By pressing F5.
If you use a project configuration that builds the report but does not deploy it, the report that is specified in the StartItem property of the current configuration opens in a separate preview window. The preview window displays the report in the same way and has the same functionality as Preview mode.
Note: |
|---|
|
Before debugging a report, you must set a start item. To set a start item, in Solution Explorer, right-click the report project, click Properties, and then in StartItem, select the name of the report to display.
|
If you wish to preview a particular report that is not the start item for the project, select a configuration that builds the report but does not deploy it (for example, the DebugLocal configuration), right-click the report, and then click Run. You must choose a configuration that does not deploy the report; otherwise, the report will be published to the report server instead of displayed locally in a preview window.