File export problem

B

Burak Gunay

Hello,

I am using the code below to enable a user save a dbf (foxpro) file
that resides ona web server to their own pc.

Response.ContentType = "application/octet-stream"
Response.AddHeader("Content-Disposition", "attachment; filename=" &
fileName)
Response.AddHeader("Content-Length", fileLength)
Response.WriteFile(file)
Response.Flush()

I have specified on my pc that files with the dbf ending should be
opened with foxpro and hence all dbf files have the fox icon on them. I
am using a very old version of foxpro (2.6)

When I am running the code from my own server, the Save File As
dialogue gives two file types to save the file as: "foxpro" and "all
files". Foxpro is the default and the file gets saved fine.

But when I run the code from the web server, the Save File As dialogue
shows only "html" and "all files" as file types and the file does not
get saved right.

How can I fix this?

Thanks,

Burak
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,679
Members
48,796
Latest member
Greg L.

Latest Threads

Top