Solved

Linking to Excel File

Posted on 2004-03-24
4
171 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 125 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Why addon domain redirects to the original domain? 8 73
Tool to email me when a website changes 29 133
JKS to store upstart data 2 106
exchange 2010 turning off 3des ciphers 2 313
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…
Periodically we have to update or add SSL certificates for customers. Depending upon your hosting plan you may be responsible for the installation and/or key generation. In the wake of Heartbleed many sites were forced to re-key. We will concen…

831 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