Forum Discussion
mugheessiddiqui
12 years agoContributor
I'm also working with Excel via COM but never faced locking issue. I've used following lines of code before working with Excel File, may be it will help you.
excel = Sys.WaitProcess('EXCEL');
if(excel.Exists)
excel.Terminate();
try
{
MsExcel = Sys.OleObject("Excel.Application");
}
catch(exception)
{
Log.Warning("Unable to initialize MS Excel.", "", pmHigher);
return;
}
// rest of the code opening workbook and visible excel here.
Related Content
- 2 years ago
- 5 years ago
Recent Discussions
- 15 hours ago
- 15 hours ago