473,385 Members | 2,015 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Spreadsheet Download Dialog Box (IE)

If the Windows Web browser (IE 5 or 6) opens an XLS file
(spreadsheet), how it handles it depends on a file association setting
within Windows. There is a setting called "confirm open after
download" in Windows Explorer under Tools, Folder Options, File Types,
XLS (in list), Advanced (button). This setting will determine if a
"Save File" dialog box pops up or not when user clicks on a
spreadsheet link. If this option is switched off, then a spreadsheet
will directly open in the browser window. We don't want this to
happen. We want the options dialog box to appear for users.

The options dialog box has "Open", "Save", and "Cancel" options, but
also allows the user to switch off this dialog in future downloads
(links to spreadsheets); but since it never appears again once off,
there is no easy way for users to set it back on.

The problem is that this option is not controllable on the server side
that we know of. It is not realistic to expect the user to go into
the Folders Options described above. We tried changing the MIME
headers to indicate binary (octet) in ColdFusion, but it did not work.
Apparently the file extension ("XLS") overrides any MIME headers.

Does anybody know of a fix or workaround that is convenient for the
users?

Thanks, -T-
Jul 20 '05 #1
6 6292
Topmind wrote:
If the Windows Web browser (IE 5 or 6) opens an XLS file
(spreadsheet), how it handles it depends on a file association setting
within Windows. There is a setting called "confirm open after
download" in Windows Explorer under Tools, Folder Options, File Types,
XLS (in list), Advanced (button). This setting will determine if a
"Save File" dialog box pops up or not when user clicks on a
spreadsheet link. If this option is switched off, then a spreadsheet
will directly open in the browser window. We don't want this to
happen. We want the options dialog box to appear for users. [snip]

This is covered in the FAQ:

<URL:http://www.htmlhelp.com/faq/html/media.html#force-download>

When thinking of posting a question to a new newsgroup, you'll often find
that your question has already been answered many times over, so try
reading the FAQ and some of the recent threads before posting. You can
usually find the FAQ by putting the newsgroup name followed by "FAQ" into
Google.

Apparently the file extension ("XLS") overrides any MIME headers.

[snip]

Sounds like typical Internet Explorer broken behaviour. Consider switching
to a browser that doesn't violate RFC 2616 (HTTP). In other words consider
switching to _any_ other browser.
--
Jim Dabell

Jul 20 '05 #2
> > If the Windows Web browser (IE 5 or 6) opens an XLS file
(spreadsheet), how it handles it depends on a file association setting
within Windows. There is a setting called "confirm open after
download" in Windows Explorer under Tools, Folder Options, File Types,
XLS (in list), Advanced (button). This setting will determine if a
"Save File" dialog box pops up or not when user clicks on a
spreadsheet link. If this option is switched off, then a spreadsheet
will directly open in the browser window. We don't want this to
happen. We want the options dialog box to appear for users. [snip]

This is covered in the FAQ:

<URL:http://www.htmlhelp.com/faq/html/media.html#force-download>

When thinking of posting a question to a new newsgroup, you'll often find
that your question has already been answered many times over, so try
reading the FAQ and some of the recent threads before posting.

I searched for more than an hour. How long do you recommend searching
before asking?

You can
usually find the FAQ by putting the newsgroup name followed by "FAQ" into
Google.

I will try to remember that. Usually sombody posts the related
FAQ to the newgroup itself, so that it's content should turn up in searches
also.

BTW, somebody recommended trying:

Content-Type: application/download.

or

Content-Type: application/x-msdownload

I have yet to try them.

Apparently the file extension ("XLS") overrides any MIME headers.

[snip]

Sounds like typical Internet Explorer broken behaviour. Consider switching
to a browser that doesn't violate RFC 2616 (HTTP). In other words consider
switching to _any_ other browser.


I don't make those decisions in the given large organization. Besides,
the content was already MS-specific before I came. Thus, any change
will impose a conversion cost.

-T-
Jul 20 '05 #3
>
BTW, somebody recommended trying:

Content-Type: application/download.

or

Content-Type: application/x-msdownload

I have yet to try them.


Why would you "try" them? That would just tell you how the specific
browser(s) tested react to
- an undefined and hence incorrect media type, and
- a media type that is explicitly labeled as being nonstandard, i.e.
to be used only by specific agreement between interested parties.

Moreover, if you _know_ what the registered media type of the data is,
you would give disinformation if you specify an incorrect media type or
a proprietary media type. Almost the same applies to the more common
advice of using application/octet-stream, which is a standard media
type but basically mean 'some lump of binary data, I don't know what,
or cannot describe it any better'.

Are you suggesting that those settings are no different than something
random like:

application/gdfjsdfasfoobar

?

I was under the impression that those settings were something
recognized by MS browsers, even if they are not a "formal" web
standard. Hacky? Perhaps, but a guaranteed download dialog box is what
the customer wants. They don't want lectures about standards purity.

-T-
Jul 20 '05 #4
to*****@technologist.com (Topmind) wrote:
I was under the impression that those settings were something
recognized by MS browsers, even if they are not a "formal" web
standard.
That is, they are recognized by some browsers that are known to violate
the fundamental protocols of the Web in this respect.
Hacky?
Try "worse than useless trickery". It only hurts when it "works".
Perhaps, but a guaranteed download dialog box is
what the customer wants.
Which is not what the user needs, and is surely not possible in HTML
authoring for the World Wide Web, which is, if you allow me, what we
are trying to discuss here.
They don't want lectures about standards purity.


Neither do we want pointless "advice" from anonymous sources.
But we cannot prevent you from giving it, we can just ignore it.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

Jul 20 '05 #5
to*****@technologist.com (Topmind) wrote:
For intranets, what many companies really want is is a "remote GUI"
protocol.


Whatever they might want, we still try to discuss HTML authoring for the
World Wide Web here. It seems that you have missed this, among other
things. Thank you for keeping your From field as a cluelessness
indicator; please do not change it unless you have something to
contribute to the topic of this group. Thank you in advance.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

Jul 20 '05 #6
>
For intranets, what many companies really want is is a "remote GUI"
protocol.
Whatever they might want, we still try to discuss HTML authoring for the
World Wide Web here.


Is there a comp.infosystems.intranets.authoring.html ?
It seems that you have missed this, among other
things. Thank you for keeping your From field as a cluelessness
indicator; please do not change it unless you have something to
contribute to the topic of this group. Thank you in advance.


You really seemed bothered by pseudonames. This is the 3rd time
you mentioned it. The first was enough to indicate your displeasure
with it. But, I disagree. Live with it.

-T-
Jul 20 '05 #7

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

Similar topics

5
by: peetm | last post by:
I'd like to write to a log whenever a visitor to my site downloads a file. So, I'd like the link they click to be to a php 'page' that returns the file. Don't know how to do that! Side...
2
by: Pedro Fonseca | last post by:
Greetings! In my PHP website I'm trying to raise a File Download dialog directly in a WindowsCE IE client with the following code: header( "Content-Type: application/octet-stream\n" );...
1
by: Navin | last post by:
hi, guys i am using the following code to force a file download dialog in asp Response.ContentType = "application/vnd.ms-excel" response.AddHeader "content-disposition","attachment; filename="...
6
by: chon | last post by:
I have an ASP page that is sent a file location as a parameter. It opens this file, loads the ADODB.Stream object and does a binary write to the page forcing the download dialog to appear. This...
4
by: Kevin Muenzler, WB5RUE | last post by:
How do I force a browser to download a file instead of displaying it? In other words I have a page with MP3 and WMA files on it and I would like for the visitor to download the file instead of...
7
by: Brian Paul | last post by:
When a user clicks on a linkbutton on a page, i would like to render a printer-friendly version of the asp.net page and download it as an html attachment to the browser. The code below works great,...
10
by: KeithRaginF | last post by:
Hello I am trying to return the contents of an Excel file. However, I don't want to just redirect the request to the Excel file since it does not reside in a location where that is appropriate. ...
2
by: Ken Varn | last post by:
I have an ASP.NET page that incorporates the following code on a button press. private void DownloadTag_Command(object sender, CommandEventArgs e) { FileStream fs; String Filename; Filename...
1
by: RN1 | last post by:
In an ASP.NET app, users can upload their files to a remote server as back-up. I want to give users the provision to download files that they have uploaded to the remote server to their local...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

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.