title: How do I save excel file in read-only mode using phpExcel module
body: <p>I am trying to get users to save/download my excel file in read-only mode (apache on windows server, all users downloading are using windows).</p>
  
  <p>So far, I have looked around for a good solution and have tried everything suggested but nothing seems to be working.</p>
  
  <p>I tried adding following lines:</p>
  
  <pre><code>$objPHPExcel-&gt;getSecurity()-&gt;setLockWindows(true);
  $objPHPExcel-&gt;getSecurity()-&gt;setLockStructure(true);
  </code></pre>
  
  <p>but still it is saving in an editable mode. Am I missing something here?</p>
  
  <p>I would prefer a solution where above mentioned goal is achieved by using phpexcel but the use of core php is also acceptable.</p>
  
  <p>Something that requires a modification to phpexcel core class won't be acceptable as there's a whole bunch of applications developed by other developers in our organisation who assume core class to be untouched.</p>