The requested page is not available for the requested platform. You are viewing the content for Default platform.

Dashboard.SaveToXml(String) Method

Saves the dashboard to the specified XML file.

Namespace: DevExpress.DashboardCommon

Assembly: DevExpress.Dashboard.v19.2.Core.dll

Declaration

public void SaveToXml(
    string filePath
)
Public Sub SaveToXml(
    filePath As String
)

Parameters

Name Type Description
filePath String

A String that specifies the path to a file to which the dashboard should be saved.

Remarks

To save a dashboard to a stream, use another overload of the SaveToXml method that takes a stream parameter.

To load a dashboard from a file or stream, use the Dashboard.LoadFromXml method.

The following code snippet shows how to save a dashboard to the project's Data folder when you click a button:

private void button1_Click(object sender, System.EventArgs e) {
  dashboardControl1.Dashboard.SaveToXml("..\\..\\Data\\Dashboard.xml");
}
See Also