A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
video training course this week in the
Opening xls file in html
Joined: Sep 02, 2005
Apr 10, 2007 10:00:00
How do I open
file in browser? On click of link I need to open the excel file alone separately. But xls file is opening in browser window.
<BODY> <a href="test.xls" target="_blank"> open xls </a> </BODY>
It opens in new window but it has all browser status bar etc.. on top..It is embedded within browser. Cannot I open without embedding it in browser window? Thanks in advance!
SCJA, SCJP, SCWCD, SCBCD, SCDJWS.
Joined: Nov 08, 2001
Apr 10, 2007 11:40:00
The browser will open files if it knows how to do it. There is no way to specify that it should be opened up in Excel.
Joined: Dec 11, 2004
Apr 10, 2007 17:29:00
If you control how the file is streamed to the browser, you can set the Context-Disposition header with "attachment" instead of the "inline" header.
There is some example
code that does this in the JSP FAQ, see JspAndExcel.
[ April 10, 2007: Message edited by: Ben Souther ]
How to ask a question...
Simple Servlet Examples
I agree. Here's the link:
subject: Opening xls file in html
Excel in MSIE
Opening excel sheet separately
How to get rid of opening extra Excel window in JSP
Error in excel report generation from jsp
Saving an Excel Report which contains HTML tags
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015