472,354 Members | 1,729 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,354 software developers and data experts.

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 1693

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

by: panik | last post by:
Hi, retreiving the source code from an instance of the AxWebBrowser component, using getBody(), through an IHTMLDocument2 object, makes the sourcode look very bad: All tags are in uppercase,...
by: Matthias Kwiedor | last post by:
I have a aplication which hosts an axWebbrowser. This activex component needs about 10 to 15 mb of memory. Because i have a option to move the aplication to tray icon and do some timer work i...
by: Christoph L | last post by:
If I open a form in a mdicontainer with an axwebbrowser-control that show´s an excel-document and I close the form first and then the application excel leaves open If I close the application...
by: Michael C | last post by:
Hi all, Quick question about the AxSHDocVw.AxWebBrowser Component. I was wondering if there is a way to view pages generated internally within my application without writing them to disk. For...
by: jokolee | last post by:
i was using component AxSHDocVw.AxWebBrowser,,but i rather confuces because when i write AxWebBrowser1.Document. the next option is Gettype function,,,nothing else...... But when i write...
by: Thom Little | last post by:
I have a windows application that has an update form that uses AxWebBrowser to connect to a distribution site. This site uses a Response.Redirect to download of either a .msi file or a .zip file....
by: ESmith | last post by:
I'm looking to user a web browser component in VS2005. I like the functionality in the AXWebBrowser component (from ActiveX controls page) that allows me to do this: mshtml.HTMLDocument doc; ...
by: RobKinney1 | last post by:
Hello, I have a AxWebBrowser control. I need to be able to display to the user what the browser is doing (loading, downloading, done, etc...). I used this event: private void...
by: =?Utf-8?B?R2F1cmF2?= | last post by:
I am using the AxSHDocVw.AxWebBrowser control (named PreviewBrowser) in my C# app to load a pdf file: PreviewBrowser.Navigate(strPDF ,ref objNull,ref objNull,ref objNull,ref objNull); These PDF...
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and efficiency. While initially associated with cryptocurrencies...
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was proposed, which integrated multiple engines and...
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. header("Location:".$urlback); Is this the right layout the...
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it so the python app could use a http request to get...
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and...
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and credentials and received a successful connection...
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific technical details, Gmail likely implements measures...
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...
by: Ricardo de Mila | last post by:
Dear people, good afternoon... I have a form in msAccess with lots of controls and a specific routine must be triggered if the mouse_down event happens in any control. Than I need to discover what...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.