Click or drag to resize

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: SautinSoft
Assembly: UseOffice (in UseOffice.dll) Version: 2024.12.12
Syntax
public bool IsPasswordProtected(
	Stream stream
)

Parameters

stream  Stream
MS Office document stream.

Return Value

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