Home |
Search |
Today's Posts |
|
#1
![]() |
|||
|
|||
![]()
From time to time (not an each run, but 5th or 6th in a row) I get the following exception at the last line in the code:
Microsoft.Office.Interop.Excel.Workbook wbNew = _ExcelApp.Workbooks.Add(Type.Missing); wsResults.Copy(Type.Missing, wbNew.Worksheets[3]); wbNew.SaveAs(string.Format("SummaryView-{0}-{1}.xlsx", segmentId, year), XlFileFormat.xlOpenXMLWorkbook, Type.Missing, Type.Missing, Type.Missing, Type.Missing, XlSaveAsAccessMode.xlShared, Type.Missing, Type.Missing, Type.Missing , Type.Missing, Type.Missing); wbNew.Close(false, Type.Missing, Type.Missing); System.Runtime.InteropServices.COMException: The server threw an exception. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT)). Why do I get it and how to fix the problem? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Incomplete Office 2007 install? Where are .NET PIAs for Excel? Need VSTO? | Excel Discussion (Misc queries) | |||
Can not close excel 2007 | Excel Discussion (Misc queries) | |||
Excel 2007 cannot close | Excel Discussion (Misc queries) | |||
Close All in excel 2007 | Excel Discussion (Misc queries) |