HotXLS dokumentacija

Grąžina or sets the password used to encrypt a BIFF8 (.xls) workbook on

EncryptionPassword: WideString; SaveAsrather than Pascal

EncryptionPassword: WideString;

rather than Pascal The write path emits a BIFF8 FILEPASS record ($002F) immediately after the workbook BOF and RC4-encrypts every subsequent record body. The wire format is vMajor=1, vMinor=1 ("Office 97/2000 Compatible" encryption). 16-byte Salt and Verifier are generated through Windows

rather than Pascal

Workbook.EncryptionPassword := CryptGenRandom ) only — the BIFF5 save path remains plaintext. An empty Random; Workbook.SaveAs(

Workbook.EncryptionPassword :=xlExcel97) only — the BIFF5 save path remains plaintext. An empty EncryptionPassword ; Workbook.SaveAs(

Workbook.EncryptionPassword :='secret'

; Workbook.SaveAs(

'Confidential.xls'

Workbook.EncryptionPassword := 'secret';
Workbook.SaveAs('Confidential.xls', xlExcel97);