Search found 2 matches

by DWM35
Fri Nov 28, 2014 12:55 pm
Forum: XLSReadWritwII 6
Topic: Password protecting files
Replies: 2
Views: 2464

Re: Password protecting files

Hi, I'm not too worried about xlsx files, but passwords don't seem to be working using xls files either. The following code demonstrates the problem. Running this using XLSReadWriteII4 (with suitable change to unit and object names) gives me an exl file which is password protected. -- Dave unit Unit...
by DWM35
Thu Nov 27, 2014 12:25 pm
Forum: XLSReadWritwII 6
Topic: Password protecting files
Replies: 2
Views: 2464

Password protecting files

Hi, We are trying to create password-protected files. The logic used is: XLS := TXLSReadWriteII5.Create (Nil); XLS.FileName := 'SampleFilename.xls'; // also tried 'SampleFileName.xlsx' XLS.Version := xvExcel97; // also tried xvExcel2007 XLS.Password := 'Password'; // code to fill in the cells XLS.Wr...