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

Dashboard.SaveToXml(Stream) Method

Saves the dashboard to the specified stream.

Namespace: DevExpress.DashboardCommon

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

Declaration

public void SaveToXml(
    Stream stream
)
Public Sub SaveToXml(
    stream As Stream
)

Parameters

Name Type Description
stream Stream

A Stream that specifies a stream to which the dashboard should be saved.

Remarks

To save a dashboard to an XML file, use another overload of the SaveToXml method that takes a string filePath 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 a stream when you click a button:

private void button1_Click(object sender, System.EventArgs e) {
  var stream = new System.IO.MemoryStream();
  // ...
  dashboardControl1.Dashboard.SaveToXml(stream);
}
See Also