MassiveAnt
New Member
- Joined
- Sep 13, 2006
- Messages
- 4
I'm writing in C# thats reads in data from an excel sheet and has functions that also make changes to the document. The problem is, if the file is read-only or it's already open...I get an exception at the open call.
How do I check if the file is open and the permissions before calling
Workbooks.Open(strPath,0,
false,
5,
"",
"",
true,
Excel.XlPlatform.xlWindows,
"\t",
false,
false,
0,
true,
1,
0);
Any ideas?
How do I check if the file is open and the permissions before calling
Workbooks.Open(strPath,0,
false,
5,
"",
"",
true,
Excel.XlPlatform.xlWindows,
"\t",
false,
false,
0,
true,
1,
0);
Any ideas?