944,198 Members | Top Members by Rank

Ad:
  • VB.NET Discussion Thread
  • Unsolved
  • Views: 6290
  • VB.NET RSS
Apr 23rd, 2007
0

Open Excel Sheet in Vb.net

Expand Post »
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
VB.NET Syntax (Toggle Plain Text)
  1.  
  2. 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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
anuragNet is offline Offline
5 posts
since Apr 2007
Jun 4th, 2007
0

Re: Open Excel Sheet in Vb.net

Hello

You should try this :
VB.NET Syntax (Toggle Plain Text)
  1. AxWebBrowser1.Dispose()
  2. AxWebBrowser1 = Nothing
Regards,
Sylvain
Reputation Points: 10
Solved Threads: 0
Newbie Poster
sylvain0000 is offline Offline
1 posts
since Jun 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in VB.NET Forum Timeline: Tutorial
Next Thread in VB.NET Forum Timeline: using sound as reminder





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC