469,963 Members | 1,225 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,963 developers. It's quick & easy.

Problem with Excel in AxWebBrowser Component in VB.NET


I have a problem when I try to open an excel document in a AxWebBrowser Component in VB.NET.
The problem appear in this situation:

Before to all the Excel application is opened from the user with some document xls.
After that my application open an excel document (can be another document) using the component AxWebBrowser

Then the first applications have problem when I try to modify the document.

I Think that my application have something wrong with the process because not appear any process when I open an Excel Document in my application.
I am using Excel Version Xp

I send the code of my application:

Public Function abrirDocumento(ByVal urlstr As String) As Boolean
oDocument = Nothing
Catch ex As Exception
Throw ex
End Try
End Function

Private Sub AxWebBrowserViewer_NavigateComplete2(ByVal sender As System.Object, ByVal e As AxSHDocVw.DWebBrowserEvents2_NavigateComplete2Even t)
On Error Resume Next

oDocument = e.pDisp.Document
With oDocument.Application.CommandBars("Standard")
.Position = 5
.Visible = True
.Controls(0).Visible = False
.Controls(1).Visible = False
.Controls(2).Visible = False
.Controls(3).Visible = False
.Controls(4).Visible = False
End With
End Sub

Private Sub Form_Disposed(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Disposed
oDocument = Nothing
Catch ex As Exception
throw ex
End Try
End Sub
Thank you a lot

From: Adrian Belen

Posted by a user from .NET 247 (http://www.dotnet247.com/)

Nov 20 '05 #1
0 1635

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Matthias Kwiedor | last post: by
1 post views Thread by Christoph L | last post: by
3 posts views Thread by Michael C | last post: by
5 posts views Thread by Thom Little | last post: by
3 posts views Thread by =?Utf-8?B?R2F1cmF2?= | last post: by
1 post views Thread by rainxy | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.