473,407 Members | 2,598 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,407 software developers and data experts.

invoking ie/windows file save dialog

running win2k adv server/ iis5.0
trying to setup on my web page where browsers can download a file, an .xls
so been trying to figure out with a download 'link' what invokes the
standard ms file save dialog, hopefully without using vbscript
other web pages i have seen have a simple link such as : <a
href="someDir/someFile.xls">Download</a>
when i used that, it just opens the spreadsheet and actually allows me to
use the spreadsheet 'through' the web page, which was a surprise but
my objective is not to run the sheet but to have the link just invoke the
file save dialog so the user/browser can save the .xls where they
want without actually having to open excel,
this should be easy right? does it have anything to do with the permissions
on the file and its directory?? and while on that subj, any ideas on
what the dir and file permissions should be?
Jul 20 '05 #1
3 10762
bbxrider wrote:
trying to setup on my web page where browsers can download a file,
an .xls so been trying to figure out with a download 'link' what
invokes the standard ms file save dialog
Read the faq, and save us all some time and trouble. In short, you
cannot control what a browser does from the server end. All you can do
is server the resource with the correct mime type. In this case, I'm
pretty sure it's application/msexcel, but check online and confirm.
when i used that, it just opens the spreadsheet and actually allows
me to use the spreadsheet 'through' the web page, which was a
surprise
MSIE is a strange beast. Other browsers will not open Excel inside the
browser like that.
does it have anything to do with the permissions on the file and
its directory??
No.
and while on that subj, any ideas on what the dir and file
permissions should be?


File permission needs read access. I don't which directory you mean,
so I cannot guess. Normally, it's read and execute. This is ot for
ciwah, ask about permission in a server group.

--
Brian (remove ".invalid" to email me)
http://www.tsmchughs.com/
Jul 20 '05 #2
thanks for the help, all i can say is i spent about an hour researching
google groups, my que html manual and checking source code as best i
can i other web pages that invoke a file save dialog, but never made the
mime connection, for invoking a file save dialog
as opposed to opening the application.

"Brian" <us*****@julietremblay.com.invalid> wrote in message
news:10*************@corp.supernews.com...
bbxrider wrote:
trying to setup on my web page where browsers can download a file,
an .xls so been trying to figure out with a download 'link' what
invokes the standard ms file save dialog


Read the faq, and save us all some time and trouble. In short, you
cannot control what a browser does from the server end. All you can do
is server the resource with the correct mime type. In this case, I'm
pretty sure it's application/msexcel, but check online and confirm.
when i used that, it just opens the spreadsheet and actually allows
me to use the spreadsheet 'through' the web page, which was a
surprise


MSIE is a strange beast. Other browsers will not open Excel inside the
browser like that.
does it have anything to do with the permissions on the file and
its directory??


No.
and while on that subj, any ideas on what the dir and file
permissions should be?


File permission needs read access. I don't which directory you mean,
so I cannot guess. Normally, it's read and execute. This is ot for
ciwah, ask about permission in a server group.

--
Brian (remove ".invalid" to email me)
http://www.tsmchughs.com/

Jul 20 '05 #3
"bbxrider" <bx******@comcast.net> a écrit dans le message de
news:gGxJc.80492$JR4.72283@attbi_s54
trying to setup on my web page where browsers can download a file, an
.xls so been trying to figure out with a download 'link' what invokes
the standard ms file save dialog, hopefully without using vbscript
other web pages i have seen have a simple link such as : <a
href="someDir/someFile.xls">Download</a>


You can try to use the method indicated in KB Q260519
But as said Brian, be really aware that you can't force the behavior of the
browser...

Jul 20 '05 #4

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

Similar topics

7
by: Martin | last post by:
Again drawing on the groups experience:- 1. For general file opening and file saving, using VB6, are there any issues with using the FileOpen and FileSave Common Dialog Boxes? 2. Is using the...
2
by: Ilyas | last post by:
Hai, I'm new here. Sorry For typos. How can i open a file save dialog in a dotnet web app. (.aspx) to save my file at clients computer. Thanx. Greatings from Holland.
4
by: John Scott | last post by:
I have a situation where I want to bring up two "File Download" dialog windows to download two separate .xls files. Is there any way to do this by only clicking on one "Export" button? --...
1
by: ASH | last post by:
Hello all, I'm using the "API: Call Windows File Open/Save Dialog Box" to source the name of a file to open. The Dialog Box when called opens in the top left hand corner of the screen. I have...
5
by: Phil Stanton | last post by:
Can anyone let me have the code for opening the open file dialog box and getting either a file or folder name as the output. I suspect it will look like Function GetPathOrFile(InputPath as...
1
by: Ryan Moore | last post by:
I'm trying to make a page that, when opened, displays a file save dialog, then closes itself (essentially just leaving the file save dialog). Is this possible? I've tried this: ...
0
by: thomasp | last post by:
Wrong title should be File Save Dialog. I have a VB2005 program that has to import data from a 3.5 floppy drive and USB drives. I use a file open dialog to choose the file, works great. The...
5
by: charles | last post by:
I have a question about the file Open dialog box. I would like to be able to make the dialog box bigger by selecting the bottom right-hand corner and dragging/expanding the box. I am told by...
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: 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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.