title: Method '~' of object '~' failed in vb6 with Excel
body: <p>We are facing a issue with one of our VB 6.0 application.
  There is line of code which convert a text file to excel file through Excel.Workbook.
  This code works fine when we run through windows application.</p>
  
  <p>But if we run the same exe from a windows service developed in C#.Net then it gives this error on this line</p>
  
  <pre><code>oWB.SaveAs FileName, XlFileFormat.xlExcel8
  </code></pre>
  
  <p>I have tried to search on google but didn't get any success.</p>
  
  <p>Any suggestion will be very much helpful.</p>
  
  <p>Thanks in Advance.</p>
  
  <p>Regards
  AR </p>