Skip to main content

DocumentPreviewControl.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.

Opens the specified document in the current Document Preview Control.

Namespace: DevExpress.Xpf.Printing

Assembly: DevExpress.Xpf.Printing.v25.2.dll

NuGet Package: DevExpress.Wpf.Printing

Declaration

public override void OpenDocument(
    string filePath = null
)

Optional Parameters

Name Type Default Description
filePath String null

A String specifying a path to the document.

See Also