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

  • Thread starter Thread starter Mich
  • Start date Start date
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)
 
i found it: i have to put the option "confirm ..." in the directory options
for type .xls.µ
 
Back
Top