Skip to main content
A newer version of this page is available. .

XRControlStyleSheet.SaveToFile(String) Method

Saves the styles contained in the given XRControlStyleSheet object to a file.

Namespace: DevExpress.XtraReports.UI

Assembly: DevExpress.XtraReports.v18.2.dll

Declaration

public void SaveToFile(
    string fileName
)

Parameters

Name Type Description
fileName String

A string containing the full path to the file (including the file name and extension) in which the styles will be saved.

Remarks

All saved styles can be loaded by the XRControlStyleSheet.LoadFromFile method.

If a file with the specified name already exists in the given destination directory the existing file will be overwritten.

Example

This example demonstrates how the XRControlStyleSheet.SaveToFile method works.

path = Application.StartupPath + @"\..\..\Styles\";

private void button1_Click(object sender, EventArgs e) {
    report.StyleSheet.SaveToFile(path + "currentStyleSheet.repss");
}

The following code snippets (auto-collected from DevExpress Examples) contain references to the SaveToFile(String) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also