How can I create an .xls file with a readwrite password from Delphi

Posted by dummzeuch on Stack Overflow See other posts from Stack Overflow or by dummzeuch
Published on 2010-03-28T19:15:49Z Indexed on 2010/03/28 19:23 UTC
Read the original article Hit count: 293

Filed under:
|

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.)

© Stack Overflow or respective owner

Related posts about delphi

Related posts about excel