VintaSoft Imaging .NET SDK 15.1: Documentation for .NET developer
Vintasoft.Imaging.Office Namespace / OfficeDocumentCryptography Class / TryDecryptOfficeDocument Methods / TryDecryptOfficeDocument(String,String,String) Method
Syntax Requirements SeeAlso
In This Topic
TryDecryptOfficeDocument(String,String,String) Method (OfficeDocumentCryptography)
In This Topic
Tries to decrypt the Office document.
Syntax
'Declaration

Public Overloads Shared Function TryDecryptOfficeDocument( _
ByVal securedDocumentFilename
The name of file that contains secured Office document.
As System.String, _
ByVal password
The password for Office document.
As System.String, _
ByVal decryptedDocumentFilename
The name of file, where decrypted Office document must be written.
As System.String _
) As Boolean
public static bool TryDecryptOfficeDocument(
System.String securedDocumentFilename,
System.String password,
System.String decryptedDocumentFilename
)

Parameters

securedDocumentFilename
The name of file that contains secured Office document.
password
The password for Office document.
decryptedDocumentFilename
The name of file, where decrypted Office document must be written.

Return Value

True if document is decrypted successfully; false if document is not secured or error occurs.
Requirements

Target Platforms: .NET 10; .NET 9; .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

See Also