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.6.26
public bool IsPasswordProtected(
	string fileName


fileName  String
Path to a MS Office document.

Return Value

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