473,406 Members | 2,710 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,406 software developers and data experts.

Why is Excel file app Not Displaying In AxWebBroswer?

When I run my application on dev pc the excel file displays in the AxWebBrowser on form 1. When run on another pc it doesn't, just displays as normal in excel with no form 1 displayed.

My code is:

Expand|Select|Wrap|Line Numbers
  1. Imports Microsoft.Office.Interop.Excel
  2. Imports Microsoft.Office.Interop.Owc11
  3. Imports AxSHDocVw.AxWebBrowser
  4. Public Class Form1
  5.     Inherits System.Windows.Forms.Form
  6.  
  7.     Public oDocument As Microsoft.Office.Interop.Excel.Workbook
  8.     Public oDocApp As Microsoft.Office.Interop.Excel._Application
  9.     Public AppPath As String = System.AppDomain.CurrentDomain.BaseDirectory
  10.     Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
  11.         Dim UnitWrkBk As String
  12.  
  13.         UnitWrkBk = AppPath & "Costs_2009.xls"
  14.         Me.AxWebBrowser1.Navigate(UnitWrkBk)
  15.  
  16.  
  17.         oDocApp = AxWebBrowser1.Document.Application
  18.         oDocument = AxWebBrowser1.Document
  19.         oDocApp.DisplayFormulaBar = False
  20.     End Sub
  21. End Class
Where am I going wrong, doing my head in!
Feb 10 '11 #1

✓ answered by Paul Morriss

I found out that this problem was purely down to the 'Edit File Type' settings for the XLS type extension.

Select the 'Browse in same window' check box and this solves the problem.

1 1442
I found out that this problem was purely down to the 'Edit File Type' settings for the XLS type extension.

Select the 'Browse in same window' check box and this solves the problem.
Mar 7 '11 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: gpost | last post by:
Hello, I am building a win form TAPI application using C# The application loads a call control in a web form panel and also an AxWebBroswer control which loads a web page. Here is the bug:...
4
by: Jae | last post by:
I'm writing a web application that exports and imports excel files. The application gets a list of users and their info and displays it in a datagrid .The user then selects to save the file as a...
0
by: Steve Chatham | last post by:
I am stuck on this. It ought to be a simple reason as to why this is problematic, in that it works on smaller groups of data (say under 40 records), but doesn't on larger groups of records (40+)....
2
by: Balamurali C | last post by:
Hi All I'm having one problem, since im debuging this last one week I'm not able to do. Problem: In my webage I have two Frames(top & bottom) in the top frame I'm displaying some...
12
by: elziko | last post by:
I'm using late binding (I must) to automate Excel. My code opens Excel after createing and poulating some sheets. My problem is that when the user finally decides to close Excel its process is...
0
by: Mel | last post by:
Hi, I am using axWebBroswer to navigate. How can I stop caching when I refresh web broswer? I hope anyone can help me, thank you very much.
2
by: Agnes | last post by:
I can export the data to an excel(quit slow , for 5k records, It need 20mins) Now, my problem is how can I join another table from another database ? "select I.invno,I.company,C.telno,C.faxno from...
2
by: kumag | last post by:
hi, i'm having this problem with export in asp. the export seems to be working fine but what's appearing is the login page for my web app. i'm using form security, username/password authentication...
7
by: alwayssmiling | last post by:
Hi frends, In my application, a class supports backend processing. In this class im creating a new excel sheet and im inserting some data into this excel sheet, and im trying to save the file...
1
by: maspr | last post by:
I am exporting a GridView to Excel in ASP.NET 2.0 with no problems. However, a user is getting the File Download dialog box twice when she exports, but for other users it only fires once. Does anyone...
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: 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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.