473,471 Members | 1,715 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Open excel workbook in browser

Hello,
I want to open an excel workbook, which is present in the server. I want
to open this excel in the browser using ASP.NET. May I know, how can I do
this?

Will the File.Open() command work here?

Please send me, any code snippet if present.

--With Regards,
Sheshadrinath
Feb 20 '06 #1
2 2112
One way to achieve this is to display link to the file in your application
and user upon clicking that open directly in excel..

Check out the url which has a similar post related to yours..
http://www.experts-exchange.com/Prog..._21235305.html

"Sheshadrinath R" wrote:
Hello,
I want to open an excel workbook, which is present in the server. I want
to open this excel in the browser using ASP.NET. May I know, how can I do
this?

Will the File.Open() command work here?

Please send me, any code snippet if present.

--With Regards,
Sheshadrinath

Feb 20 '06 #2
Sheshadrinath

The very simplest way is to list the excel file as hyper link e.g.:
<a href="book.xls">Open</a>
And upon clicking the link web browser will display
a dialog box with Open Save and Cancel button, Click the open button

Alternatively you can use DataGrid and bind the excel sheet content to
DataGrid

See the following Post for more details...

http://www.aspfree.com/c/a/ASP.NET-C...s-from-ASPNET/
http://support.microsoft.com/kb/306572/en-us
Vinu

"Sheshadrinath R" <Sh************@discussions.microsoft.com> wrote in
message news:35**********************************@microsof t.com...
Hello,
I want to open an excel workbook, which is present in the server. I want
to open this excel in the browser using ASP.NET. May I know, how can I do
this?

Will the File.Open() command work here?

Please send me, any code snippet if present.

--With Regards,
Sheshadrinath

Feb 20 '06 #3

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

Similar topics

6
by: Geert-Pieter Hof | last post by:
Hello, My VB 6.0 application read and writes data from and to a MS Excel workbook, using the Microsoft.Jet.OLEDB.4.0 provider. Now I want to protect the Excel workbook with a password, but I...
2
by: Belinda | last post by:
Hello All I want to place a Excel workbook on the web server and create a URL link to it and when the user clicks on it to the URL/vbscript behind it must launch Excel on the client and open the...
1
by: Lize | last post by:
Hi, I'm writing an ASP application to open an excel workbook, then run a macro stored in the excel file, which produces outputs that will be displayed back onto my ASP application. Now the...
2
by: k-w | last post by:
Hi all In vb I do: Dim Ex As New Excel.Application Ex.Workbooks.Open "c:\tmp\Book1.xls" Similar code in VC doesn't work:
3
by: toffee | last post by:
Hi all, I got a pre-formatted spreadsheet. would it be possible using js to copy the data from a table on the current webpage, open the spreadsheet and paste the content ? if so, anyone got any...
3
by: pleaseexplaintome_2 | last post by:
using the code below (some parts not included), I create a new excel workbook with spreadheets. I then want to delete a spreadsheet, but a reference remains open and excel stays in task manager...
9
by: Looch | last post by:
Was hoping I could get some insight on this. I added a text box and command button to a web page and added the code in the .vb file to open an existing Excel file based on what was typed in the...
1
by: trandtun | last post by:
Hello, I use VS2005,Excel2003,WinXP-sp2 and create asp.net web application project to open the excel file. I want to show excel application. If I use visual development server type from...
4
by: omono84 | last post by:
I know that this should be rather simple but i seem to be missing a step to get it to work. and have been unable to find a solution on the net. The aim is that I click on the open button to find...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.