Skip to main content

DocumentViewerControl.OpenDocument(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 document from the specified file and opens it in the viewer.

Namespace: DevExpress.Xpf.DocumentViewer

Assembly: DevExpress.Xpf.DocumentViewer.v25.2.Core.dll

NuGet Package: DevExpress.Wpf.DocumentViewer.Core

Declaration

public virtual void OpenDocument(
    string filePath = null
)

Optional Parameters

Name Type Default Description
filePath String null

A String specifying the full path to a document file.

See Also