title: Win32::OLE error on file open
body: <p>I am trying to open a .xlsm file using Win32::OLE from my webpage in perl on windows/apache server.</p>
  
  <p>On researching for this issue, came across the following possible solutions:</p>
  
  <ol>
  <li><p>Few had it resolved by setting their path to a absolute one. This did no work for me.</p></li>
  <li><p>Setting permissions for the script to have permissions to access files on server. I am not sure how to go about this. However, I am authenticating my user via windows sspi and will have a userid. Will that user id be verified for file access on Win32::OLE ?</p></li>
  </ol>
  
  <p>However, I am able to open the file using a File Handle. I have read/written using file handles to files on this server location from my webpage earlier. Is the win32::OLE permissions different from that?? </p>
  
  <p>The error is :</p>
  
  <pre><code>Microsoft Excel cannot access the file 'C:\test.xlsm'. There are several
  possible reasons:
  
  • The file name or path does not exist.
  • The file is being used by another program.
  • The workbook you are trying to save has the same name as a currently open
  workbook.
  
  Win32::OLE(0.1709) error 0x800a03ec
      in METHOD/PROPERTYGET "Open"
  </code></pre>
  
  <p>Appreciate any inputs.</p>