Add DataSource in WPF ReportDesigner Control

2 Jun 20211 minute to read

This feature allows you to add a DataSource to the Report Designer. It binds the database from the server. The following steps are used to add the DataSource to the Report Designer.

  1. In the Report Data, Click New, and then click the DataSource.

    Click data source in WPF ReportDesigner

  2. Right click on the Data Sources field and then click on Add Data Source.

    Click Add Data Source field in WPF ReportDesigner

  3. Enter the DataSource name in the Name field and choose use a embedded connection radio button and select the connection type from the Select connection type drop-down.

    Displays Data Source Properties window of WPF ReportDesigner

  4. Click Build, then connection properties Wizard opens

  5. Enter the server name in the Server name field.

  6. In log on to server column select use windows authentication, then select or enter a database name in the Select or enter a database name drop-down ComboBox in connect to a database column.

    Displays select database name and server in Connection Properties window of WPF ReportDesigner

  7. Click the Test Connection to check the server connection.

  8. The Test Results dialog box is displayed after completing the connection check.

    Displays the test result of WPF ReportDesigner

  9. Click OK. It provides a connection string for the DataSource.

    Add connection string for data source in WPF ReportDesigner

  10. Click OK. The added DataSource (Adventure) appears in the Report Data panel.

    Added data source in report data panel in WPF ReportDesigner