Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
getting System.Runtime.InteropServices.COMException
My application is an addin to Excel, and during each operation (like drag
drop a string from external source to a cell in Excel)we do ExcelApplicationObject.Undo() and then try to get Excel cell value and store that previous cell value in cache for later use - but at one instance (like when we hold "Shift" key and drag drop a normal string to a excel cell) we are seeing "Exception from HRESULT: 0x800A01A8" exception and I dont see any wrong in my code. Please help me why I am seeing this error. Below is the code snippet... oldValue = string.Empty; newValue = string.Empty; Excel1.Range currentRange = r; if (r.Cells.Value2 != null) { newValue = Utility.GetCellValue (r) ; } m_app.Undo(); if (r.Cells.Value2 != null) // getting exception at this point, and r is not null. { oldValue = Utility.GetCellValue (r); } r = currentRange; -- Aruna |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How can i prevent the COMException 0x80010108 and 0x80010105? | Charts and Charting in Excel | |||
System.Runtime.InteropServices.COMException (0x800A03EC) | Excel Programming | |||
System.Runtime.InteropServices.COMException (0x80020005) in excel 2k7, but worked well in 2k3 | Excel Programming | |||
I get COMException while exporting chart on IIS 6.0. | Charts and Charting in Excel | |||
Excel SaveCopyAs COMException 0x800A03EC | Excel Programming |