Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Linking to Excel File

Posted on 2004-03-24
4
Medium Priority
?
176 Views
Last Modified: 2013-12-24
Is there any way to stop the download dialog box opening when a link to an excel file is clicked.
0
Comment
Question by:bradie
4 Comments
 
LVL 35

Accepted Solution

by:
mrichmon earned 500 total points
ID: 10668718
No because this is browser dependent.  If the browser knows what to do it may open the file such as Internet Explorer.  But in general why would you want to create a link to an excel file and not have it available for download?  Not all browsers will be able to display the file in the browser so those people need to download the file to be able to view it.
0
 
LVL 17

Expert Comment

by:anandkp
ID: 10675527
If ur using CFCONTENT/CFHEADER - then u ahve the option of opening up -> inline or as attachment.
1. inline - it wld open he file directly in the browser
    [if the user has the program available (on his PC) to open the particular type of file]
2. attachment - it wld open the dialog box as ur getting now.

<CFHEADER NAME="Content-disposition" VALUE="attachment;filename=anand.xls">
<CFCONTENT TYPE="application/msexcel" FILE="C:\ProjName\anand.xls" DELETEFILE="yes">

If ur just giving the URL of the excel file -> then mrichmon has the answere for u !
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In our day to day coding, how many times have we come across a necessity to check whether a URL is a broken link or not? For those of you that answered countless and are using ColdFusion like myself, then this article is for you.  It will show yo…
Most ColdFusion developers get confused between the CFSet, Duplicate, and Structcopy methods of copying a Structure, especially which one to use when. This Article will explain the differences in the approaches with examples; therefore, after readin…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Loops Section Overview

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question