|
Prev: Session Killer
Next: Logging Solution
From: Mich on 4 Jul 2008 07:32 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)
From: Mich on 4 Jul 2008 15:22 i found it: i have to put the option "confirm ..." in the directory options for type .xls.� "Mich" <mich(a)nomaol.er> schreef in bericht news:%23H%23gwmc3IHA.2064(a)TK2MSFTNGP02.phx.gbl... > 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) >
|
Pages: 1 Prev: Session Killer Next: Logging Solution |