UseOfficeIsPasswordProtected(Stream) 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
Syntaxpublic bool IsPasswordProtected(
Stream stream
)
Public Function IsPasswordProtected (
stream As Stream
) As Boolean
Parameters
- stream Stream
- MS Office document stream.
Return Value
BooleanTrue if document is protected by a password, false otherwise.
See Also