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: SautinSoftAssembly: UseOffice (in UseOffice.dll) Version: 2024.12.12
Syntax public bool IsPasswordProtected(
string fileName
)
Public Function IsPasswordProtected (
fileName As String
) As Boolean
Parameters
- fileName String
- Path to a MS Office document.
Return Value
BooleanTrue if document is protected by a password, false otherwise.
See Also