UseOfficeIsPasswordProtected(Byte) 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(
byte[] fileBytes
)
Public Function IsPasswordProtected (
fileBytes As Byte()
) As Boolean
Parameters
- fileBytes Byte
- MS Office document as a byte array.
Return Value
BooleanTrue if document is protected by a password, false otherwise.
See Also