Monday, June 11, 2012

The file is being used by another program Excel InteropServices

Recently my friend faced a problem when automating a program that written using excel InteropServices. This program work perfectly in debug mode  and Windows XP. but when it try to automate using task scheduler in Windows 7 , Vista and upper version it is giving following errors.

  • 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 the currently opened book
  • 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 the currently opened book

So creating a Desktop Folder in a following path resolved the issue.

C:\Windows\System32\config\systemprofile\Desktop

Refer:http://social.msdn.microsoft.com/Forums/en/innovateonoffice/thread/b81a3c4e-62db-488b-af06-44421818ef91

Post a Comment