title: Excel cannot access the file when saving file
body: <p>I am trying to save my Excel file that I created in c#. I added a <code>DateTime.Now</code> to the title and made sure the characters where compatible. Now I have the above error when the folder exists. I have posted what it says could be the error but none apply. Also when I get the error it tells me the <code>DateTime.Now</code> portion is say for todays date and time started was 5/9/8E017700. That is not not a date or time for year and time. I think that maybe the problem but I am unsure as to why it is altered when I never change the variable for name. How can I get this problem resolved?</p>
  
  <p>• The file name or path does not exist.</p>
  
  <p>• The file is being used by another program.</p>
  
  <p>• The workbook you are trying to save has the same name as a currently open workbook.</p>
  
  <pre><code>string date = DateTime.Now.ToString().Replace(":", ".");
  
  string filename = "IncomingProduct-" + date + ".xls";
  
  string subPath = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile) + "/Documents/Reports/";
  
      bool isExists = Directory.Exists(subPath);
  
      if (!isExists)
          Directory.CreateDirectory(subPath);
  
      xlWorkBook.SaveAs(subPath + filename);//error here
      xlWorkBook.Close(true, misValue, misValue);
      xlApp.Quit();
  
      System.Diagnostics.Process.Start(subPath + filename);
  </code></pre>