hi,
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
Try
oDocument = Nothing
AxWebBrowserViewer.navigate(urlstr)
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
Try
oDocument = Nothing
Catch ex As Exception
throw ex
End Try
End Sub
Thank you a lot
Adri?n
--------------------------------
From: Adrian Belen
-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)
<Id>BG7Tb2GbT0yJYC9BAkDF1w==</Id>