Display Excel in Web Browser

Posted on 2013-09-18
Medium Priority
Last Modified: 2013-09-18
The code here should load my excel in web browser in form.  

WebBrowser1.Navigate(System.Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) & "\testABC.xlsx")

Open in new window

However it asks if i want to save open or cancel.  If i open it opens it into xcel.  I want it just to load into the webbrowser with no alerts.  It works fine with a pdf file.
Question by:Millkind

Accepted Solution

Red-King earned 2000 total points
ID: 39502512
I believe this is down to your Browser and not your code or excel.

Your browser does not know how to interpret the excel file so passes it to the OS to deal with.
There is a plugin that allows your browser to open PDF files which is why that works.

As an alternative you can save your excel file as a web page by changing the file type when you use File->Save-As.


Author Closing Comment

ID: 39502573
saved as xps worked great.  Thanks for the explanation too.

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Planning to migrate your EDB file(s) to a new or an existing Outlook PST file? This video will guide you how to convert EDB file(s) to PST. Besides this, it also describes, how one can easily search any item(s) from multiple folders or mailboxes…
To export Lotus Notes to Outlook PST or Exchange and Domino Server files to Exchange Server or PST files with ease, go for Kernel for Lotus Notes to Outlook conversion tool. Through the video, you can watch the conversion process. A common user with…

597 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question