View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Ajaz Ajaz is offline
external usenet poster
 
Posts: 1
Default COMException raised on opening excel file in thread

Hi all,

I am trying to import excel file into datagridview from a thread. on runt
time i am getting below error. The same code is running perfectly if not run
in thread

"A first chance exception of type
'System.Runtime.InteropServices.COMException' occurred in test.exe"

Note: i have taken care for add row in datagridview control by uisng
invokereq and callback concept. though i have not done anything for excel
operations like this.

Can anyone help me on this. Maybe i am missing something here.


Thanks
Ajaz