DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   VB.NET (http://www.daniweb.com/forums/forum58.html)
-   -   Open Excel Sheet in Vb.net (http://www.daniweb.com/forums/thread76212.html)

anuragNet Apr 23rd, 2007 9:30 am
Open Excel Sheet in Vb.net
 
Hi,
I am opening a existing xl file in vb.net(form itself).
I have added Component "Microsoft Web Browser" and then using "Microsoft Web Browser" control.
Now to open my excel file, I am writing this simple code on a button click
 
AxWebBrowser1.Navigate("C:\CHIMP\Chimp.xls")
Excel is opening properly
Now Problem: when i clcking on close button of form..its almost hang. I can see Excel.exe is still running in task manager. Once I kill it ...all went well ann my hang form automatically close.
Please suggest what to do as AxWebBrowser1.Navigate is not giving any handler so i dont have further excess.
Regards
Anurag

sylvain0000 Jun 4th, 2007 5:47 am
Re: Open Excel Sheet in Vb.net
 
Hello

You should try this :
AxWebBrowser1.Dispose()
AxWebBrowser1 = Nothing
Regards,
Sylvain


All times are GMT -4. The time now is 1:31 pm.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC