problem with exporting to excel with IE 6 (and not with IE 7)

M

Mich

Hi,

I have an application where some data from a table must be exported to
excel. With IE 7.0, there is no problem: the windows asking to open or to
save the file appears, but with version 6, that window never appears and
asp.net tries to put the file in c:\wwwroot\inetpub\... which causes an
error of permission.

So, how can i make that windows appear in IE 6?
Thanks
mich

filePath = Server.MapPath("\enqsql")
fileName = filePath & "\" & fileExcel
If File.Exists(fileName) Then File.Delete(fileName)

objFileStream = New FileStream(fileName, FileMode.OpenOrCreate,
FileAccess.Write)
objStreamWriter = New StreamWriter(objFileStream)
 
M

Mich

i found it: i have to put the option "confirm ..." in the directory options
for type .xls.µ
 

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

Top