Hi,
I am using an IIS application to launch a windows service which then opens a (2003 or 2007) Excel file. When my Excel add-in receive the 'open' message, it will try use the following code to open the Excel file.
Microsoft.Offic e.Interop.Excel .Application.Wo rkbooks.Open(fN ame, False, 1) 'fName is the path to the file
Then I got the exception:
"Microsoft Office Excel cannot access the file 'C:\...\Book200 3.xls'. 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.”
The file is not in use and the path is correct. And I have given everyone full permission on that file. I am using windows 7 64-bit, Excel 2007 sp2 and IIS 7. The folders "C:\temp", "C:\Windows\Sys WOW64\config\sy stemprofile\Des ktop" and "C:\Windows\Sys tem32\config\sy stemprofile\Des ktop" are existing.
Could anybody help please?
Thanks
I am using an IIS application to launch a windows service which then opens a (2003 or 2007) Excel file. When my Excel add-in receive the 'open' message, it will try use the following code to open the Excel file.
Microsoft.Offic e.Interop.Excel .Application.Wo rkbooks.Open(fN ame, False, 1) 'fName is the path to the file
Then I got the exception:
"Microsoft Office Excel cannot access the file 'C:\...\Book200 3.xls'. 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.”
The file is not in use and the path is correct. And I have given everyone full permission on that file. I am using windows 7 64-bit, Excel 2007 sp2 and IIS 7. The folders "C:\temp", "C:\Windows\Sys WOW64\config\sy stemprofile\Des ktop" and "C:\Windows\Sys tem32\config\sy stemprofile\Des ktop" are existing.
Could anybody help please?
Thanks