473,624 Members | 2,685 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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">D ownload</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 10795
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*****@juliet remblay.com.inv alid> wrote in message
news:10******** *****@corp.supe rnews.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******@comca st.net> a écrit dans le message de
news:gGxJc.8049 2$JR4.72283@att bi_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">D ownload</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
16216
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 FileOpen and FileSave Common Dialog Boxes the best way to go in general? 3. For Most of my projects I will be using the same types of data input form and report output form, as discussed here recently. Also, the files that are
2
384
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
1994
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? -- Thanks In advance, John Scott.
1
3181
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 been unable to determine a method of forcing the dialog box to open in the centre of the screen (or any other position on the screen). How can l control the position on the screen in which the dialog box opens ? Any help would be greatly...
5
21382
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 String) As String ...... End function I seem to be able to get one or the other, but not both Files and Folders. I
1
421
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: Response.ContentType="image/JPEG"; //Response.AddHeader ("Content-Length", FileSize.ToString()); Response.AppendHeader("Content-Disposition","attachment; filename=img1.jpg"); Response.WriteFile(@"c:\img1.jpg"); Response.Write("<script>window.close();</script>");
0
1367
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 problem occurs the next time I wish to open a file. If the last import was done from a floppy drive the program looks for a floppy drive first and if it has been removed I get an error. While I could just catch the error, I would rather know how...
5
5397
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 my colleagues that this is not "standard" but find it hard to believe. Opening a file in MS word for example, the dialog has
1
2291
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 machine. This is how I am invoking the file download dialog box that pops up in IE6 (users click a Button): Sub btn_DwnldFile(ByVal obj As Object, ByVal ea As EventArgs) Dim strURL As String = 'getting the file name Response.ContentType =...
0
8182
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8688
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8635
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8494
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7178
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6115
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5570
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
1800
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1496
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.