PC Review


Reply
Thread Tools Rate Thread

COMException raised on opening excel file in thread

 
 
Ajaz
Guest
Posts: n/a
 
      5th Mar 2008
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
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Addhandler in a Multithreading class and the events raised in seperate threads, how to get to the caller thread? daan@dnc.nu Microsoft VB .NET 3 1st Aug 2006 12:28 PM
How to know exception raised from a Thread =?Utf-8?B?UmljYXJkbyBRdWludGFuaWxsYQ==?= Microsoft C# .NET 3 8th May 2006 03:20 PM
Event raised on different thread problem Kulgan Microsoft Dot NET 1 28th Nov 2004 11:42 AM
COMException is Raised =?Utf-8?B?U2FiaQ==?= Microsoft ASP .NET 2 9th Jul 2004 02:01 PM
RE: Event raised by thread Tyler Whitney [MSFT] Microsoft Dot NET 0 22nd Sep 2003 08:44 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:39 PM.