V
vinuthan
When i use the xlWorkBook.SaveAs(fileName,
Excel.XlFileFormat.xlWorkbookNormal, misValue, misValue, misValue, misValue,
Excel.XlSaveAsAccessMode.xlExclusive, misValue, misValue, misValue, misValue,
misValue); it was giving me an error.
The issue got resolved when i changed the code to following
xlWorkBook.SaveCopyAs(fileName);
Excel.XlFileFormat.xlWorkbookNormal, misValue, misValue, misValue, misValue,
Excel.XlSaveAsAccessMode.xlExclusive, misValue, misValue, misValue, misValue,
misValue); it was giving me an error.
The issue got resolved when i changed the code to following
xlWorkBook.SaveCopyAs(fileName);