473,387 Members | 1,669 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Problem with Excel in AxWebBrowser Component in VB.NET

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>
Nov 20 '05 #1
0 1743

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

Similar topics

0
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,...
0
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...
1
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...
3
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...
1
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...
5
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....
6
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; ...
1
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...
3
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.