Back to Devexpress

XRControlStyleSheet.LoadFromFile(String) Method

xtrareports-devexpress-dot-xtrareports-dot-ui-dot-xrcontrolstylesheet-dot-loadfromfile-x28-system-dot-string-x29.md

latest2.2 KB
Original Source

XRControlStyleSheet.LoadFromFile(String) Method

SECURITY-RELATED CONSIDERATIONS

Using file paths sourced from untrusted input may expose unauthorized files or allow unintended file access. Always validate and normalize all external paths to prevent path manipulation.

Loads the styles from the given file into the current XRControlStyleSheet object.

Namespace : DevExpress.XtraReports.UI

Assembly : DevExpress.XtraReports.v25.2.dll

NuGet Package : DevExpress.Reporting.Core

Declaration

csharp
public void LoadFromFile(
    string fileName
)
vb
Public Sub LoadFromFile(
    fileName As String
)

Parameters

NameTypeDescription
fileNameString

A string containing the full path to a file containing the styles that needed to be loaded.

|

Remarks

If the given XRControlStyleSheet contains a style with the same name as one of the styles to be loaded and they differ from each other then the style being loaded will replace the existing one. If the two styles don’t differ then the existing style will be retained in the XRControlStyleSheet.

See Also

LoadFromStream(Stream)

SaveToFile(String)

XRControlStyleSheet Class

XRControlStyleSheet Members

DevExpress.XtraReports.UI Namespace