Back to Devexpress

SpreadsheetControl.EncryptedFilePasswordCheckFailed Event

wpf-devexpress-dot-xpf-dot-spreadsheet-dot-spreadsheetcontrol-1efbb124.md

latest3.2 KB
Original Source

SpreadsheetControl.EncryptedFilePasswordCheckFailed Event

Occurs when the encryption password is empty or invalid.

Namespace : DevExpress.Xpf.Spreadsheet

Assembly : DevExpress.Xpf.Spreadsheet.v25.2.dll

NuGet Package : DevExpress.Wpf.Spreadsheet

Declaration

csharp
public event EncryptedFilePasswordCheckFailedEventHandler EncryptedFilePasswordCheckFailed
vb
Public Event EncryptedFilePasswordCheckFailed As EncryptedFilePasswordCheckFailedEventHandler

Event Data

The EncryptedFilePasswordCheckFailed event's data class is EncryptedFilePasswordCheckFailedEventArgs. The following properties provide information specific to this event:

PropertyDescription
DocumentNameGets the encrypted document’s name.
ErrorObtains the password error.
HandledGets or sets a value that indicates whether the event handler has completely handled the event or whether the system should continue its own processing. Inherited from HandledEventArgs.
TryAgainGets or sets whether to request a password again.

Remarks

Hanlde the EncryptedFilePasswordCheckFailed event to determine the password error (PasswordRequired or WrongPassword), and specify whether to enable a new password request (TryAgain).

If the TryAgain property is set to true , the SpreadsheetControl.EncryptedFilePasswordRequest event occurs. The SpreadsheetControl.InvalidFormatException event fires when the TryAgain property is not specifies or set to false.

See Also

SpreadsheetControl Class

SpreadsheetControl Members

DevExpress.Xpf.Spreadsheet Namespace