How to set read-only mode for document

Feb 16, 2011 at 1:35 PM


Is it possible to generate xls file via PHPExcel with read-only mode, so people can't edit it in exel? If yes, when I can see an example?

With regards, Igor

Feb 16, 2011 at 3:20 PM

See the "4.6.26. Setting security on a spreadsheet" chapter in the "PHPExcel Developer Documentation" document. It includes same sample code.

You also have a working example in the "Test" directory: 11documentsecurity.php