Click or drag to resize

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: SautinSoft
Assembly: UseOffice (in UseOffice.dll) Version: 2024.6.26
Syntax
public bool IsPasswordProtected(
	byte[] fileBytes
)

Parameters

fileBytes  Byte
MS Office document as a byte array.

Return Value

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