Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
|
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 4th, 2007, 03:18 AM
Authorized User
 
Join Date: Jul 2007
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default open a excel file on local computer

Hi,
   I have an excel file in the server.
How to open this excel file on local computer.
I am using asp.net 2.0 with c#.
Can anyone help me.

Thanks,
Premnaath.



 
Old December 4th, 2007, 01:23 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

The simplest way is to provide a direct link to the file assuming the file is visible thru a web address. If not, then you can link to an ASPX(page) or ASHX(handler) that reads the Excel file and streams the contents to the client. You'll need to specify the correct content type (mime type) in order for the client browser to understand that it's an excel file. Possible types are:

application/excel
application/vnd.ms-excel
application/x-excel
application/x-msexcel

(from: http://www.webmaster-toolkit.com/mime-types.shtml)

-Peter





Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I get an alert box on my local computer when s bhavna General .NET 1 June 1st, 2007 07:57 AM
Can I get an alert box on my local computer when s bhavna ASP.NET 1.0 and 1.1 Basics 0 May 30th, 2007 06:10 AM
How to get the all user name of local computer? fany_han Pro VB.NET 2002/2003 0 June 6th, 2006 11:10 PM
How to Flush out Cache on my local computer bekim VB.NET 2002/2003 Basics 1 June 16th, 2004 08:59 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.