Share via


Report Selection from the Properties Window

To select a report to view with the CrystalReportViewer control in a Windows project, you had to drag a ReportDocument component onto the page, configure a report for the component, and then bind it to the CrystalReportViewer control in the code-behind class.

In Crystal Reports for Visual Studio, report selection for the CrystalReportViewer control has been simplified. After you add a CrystalReportViewer control to the Windows form, you can select a report directly from the ReportSource property in the Properties window.

The ReportSource property displays a combo box. When clicked, the combo box provides a browse selection as well as a listing of all embedded reports within the project.

Select a report using the ReportSource property. A design-time preview of the report is shown in the CrystalReportViewer control. For more information, see Design Time Preview.

Note

For more information about report binding scenarios, see Which Report Binding Scenario Should I Use?.

To learn how to set up a project for coding with the Crystal Reports API, see Project Setup.

See Also