dcsimg
how to download excel file from HTML anchor tag.
3 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Abdul_Ambalam
Posted On:   Wednesday, September 18, 2002 11:05 PM

Hi,
I want user to download excel file to the system by clicking anchor tag. The browser shouldn't display the excel file. How to do that. Thankyou.

Re: how to download excel file from HTML anchor tag.

Posted By:   Firat_Tiryaki  
Posted On:   Friday, September 20, 2002 07:38 AM

you should use your server side language's header function

Re: how to download excel file from HTML anchor tag.

Posted By:   Christopher_Schultz  
Posted On:   Friday, September 20, 2002 06:40 AM

You can take a look at this article which describes how to write a servlet to generate the proper header for downloading a file instead of displaying it in the browser.



Check it out.



Hope that helps,

-chris

Re: how to download excel file from HTML anchor tag.

Posted By:   Nitesh_Naveen  
Posted On:   Thursday, September 19, 2002 02:46 AM

The basic behaviour of the browser and the OS is to open any file if it is identified with any program or else prompt to save. It is entirely on teh browser setting/security that a user will be prompted on whether to save or open the file. I don't think the browsers have opened their APIs on that part for any manipulations. That could lead to a security hole!!!
About | Sitemap | Contact