Click or drag to resize

UseOfficeIsPasswordProtected(String) Method

Detects if a given Ms Office document is protected by a password or not. Supported formats: Word, Excel and PowerPoint (both legacy and OpenXml).

Namespace: SautinSoft
Assembly: UseOffice (in UseOffice.dll) Version: 2024.12.12
Syntax
public bool IsPasswordProtected(
	string fileName
)

Parameters

fileName  String
Path to a MS Office document.

Return Value

Boolean
True if document is protected by a password, false otherwise.
See Also