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

Code to download word documents to a Mac via web - MVP?

Tim
We are having problems getting a Mac with IE to download Word documents from our web site using the code below. Any tips welcom

Response.Clear(
Response.ContentType = "application/x-unknown
Response.AppendHeader("Content-Disposition", "attachment; filename=" & Chr(34) & oDr(FileNameField) & Chr(34)
Response.BinaryWrite(oDr(FieldName)
Response.End()
Jul 21 '05 #1
1 1137
Try this...

Response.Clear()
Response.ContentType = "application/octet-stream"
Response.AppendHeader("Content-Disposition", "attachment; filename='" &
oDr(FileNameField) & "'")
Response.BinaryWrite(oDr(FieldName))
Response.Flush()
Response.End()

"Tim" <an*******@discussions.microsoft.com> wrote in message
news:1C**********************************@microsof t.com...
We are having problems getting a Mac with IE to download Word documents from our web site using the code below. Any tips welcome
Response.Clear()
Response.ContentType = "application/x-unknown"
Response.AppendHeader("Content-Disposition", "attachment; filename=" & Chr(34) & oDr(FileNameField) & Chr(34)) Response.BinaryWrite(oDr(FieldName))
Response.End()

Jul 21 '05 #2

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

Similar topics

0
by: Tim | last post by:
We are having problems getting a Mac with IE to download Word documents from our web site using the code below. Any tips welcom Response.Clear( Response.ContentType = "application/x-unknown...
6
by: JCO | last post by:
Does anybody have a Download Dialog written in JavaScripts? This is for a website. I've seen it done before.... where you click on what you want and the dialog comes up asking you if you want to...
10
by: mike | last post by:
I was looking for a method for the user to get a file from my site and save it to his computer. I ran across this method: use a span tag with an onclick event like: <span...
10
by: Neil | last post by:
An article at http://news.com.com/2100-1012-991694.html?tag=fd_top states: "XML would allow easier interchange of data generated in Office documents with back-end systems or existing Web...
0
by: kris | last post by:
hi can any one help me out, i have written a code for Word Indexing using Dll's i think this is an incomplete code for WORD INDEX. I had encountered this error "Error! No index entries found"...
11
by: Dorsa | last post by:
HI, Could you please tell me the error in here. I am trying to open an XML file from a link. Response.Clear() Response.Expires = 0 Response.BufferOutput = False Response.ContentType =...
1
by: Tim | last post by:
We are having problems getting a Mac with IE to download Word documents from our web site using the code below. Any tips welcom Response.Clear( Response.ContentType = "application/x-unknown...
5
by: Carstonio | last post by:
I use ASP to display links to Word documents on an intranet. Is there a way in ASP to do text searches on the documents' contents? I want the results to have the link to the Word document plus two...
1
by: adultswim | last post by:
Hello everyone... I have a problem that I was hoping I might be able to get some suggestions on the best way to resolve. Do to the environment I work in I am not able to get outside access to the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.