Create a WinForms Viewer for Displaying a Dashboard

This topic describes how to build a simple dashboard viewer application and use it to display the dashboard created in Create a Dashboard using the WinForms Designer.

Follow the steps below.

  1. Run Visual Studio and create a new Windows Forms Application.
  2. Drag the DashboardViewer control from the DX.18.1: Data & Analytics Toolbox tab and drop it onto the main form.

    GettingStarted_L2_Toolbox

    Important

    Note that the DashboardViewer control does not support the .NET Framework 4.0 Client Profile. See How to: Target a Version of the .NET Framework to learn how to target a specific .NET Framework version.

  3. Click the control's smart tag button and select Dock in Parent Container to allow the DashboardViewer to fill the entire window.

    GettingStarted_L2_Dock

  4. In the same menu, click Load Dashboard, use the invoked dialog to locate the dashboard XML file created in the first lesson, and choose this file as the DashboardSource.

    GettingStarted_L2_LoadDashboard

    Important

    The dashboard XML file created in the first lesson uses an Access 97 database. If you have Windows x64, make sure that the WinForms Dashboard Designer application is built with its Platform target set to x86.

    As an alternative, you can select a dashboard created at design time.

    GettingStarted_L2_LoadVSDashboard

  5. Run the application to see the result.

    GettingStarted_L2_Result