How can I create an .xls file with a readwrite password from Delphi
- by dummzeuch
I know that it is possible to create .xls files from Delphi using ADO, OLE automation with Excel and even using several commercial libraries.
My requirement now is not just creating a new .xls file and adding data to it but in addition protecting it with a password against editing.
I guess this would be possible using OLE automation but that would require an Excel installation on the computer and also add all the potential hassle of OLE automation which I would like to avoid.
Does any of the other solutions provide the option of password protecting the file?
(Yes, I know this is far from secure, but the customer requests it.
Just in case it matters: I am using Delphi 2007.)