Loads a dashboard from an XML file.
public void LoadDashboard( string filePath )
Public Sub LoadDashboard( filePath As String )
A String that specifies the path to an XML file that contains the dashboard.
You can open a dashboard in one of the following ways.
- Create and assign an instance of the Dashboard class to the DashboardDesigner.Dashboard property.
- Use the LoadDashboard method to open a dashboard from a file or stream.
To save a dashboard to a file or a stream, use the Dashboard.SaveToXml method. You can use the Dashboard.LoadFromXml method to load a dashboard definition from a file or a stream to the existing dashboard.
The following code snippet shows how to load a dashboard located in the project's Data folder: