I am trying to generate an online report where the user can select ASP or XL output. When the HTML Output is selected, the ASP executes without issue and is rendered. When the "XL" value is passed, this line of code inserts the response.ContentType statement that I was expecting would render Excel.
If strComp(request.querystring("output"
,"XL"
=0 Then
response.ContentType = "application/vnd.ms-excel"
End If
Currently what is happening is that I receive the Open/Save file Pop-Up. Then if I select "Open", I receive an error that IE "Could not Open file ' If I select "Save" file, then the error displays a message the the site could not be accessed. Both of these errors are also present if I do not pass a querystring.
Are there any settings on IIS required in order to enable the XL ContentType parameter to work? What am I doing wrong?
If strComp(request.querystring("output"
response.ContentType = "application/vnd.ms-excel"
End If
Currently what is happening is that I receive the Open/Save file Pop-Up. Then if I select "Open", I receive an error that IE "Could not Open file ' If I select "Save" file, then the error displays a message the the site could not be accessed. Both of these errors are also present if I do not pass a querystring.
Are there any settings on IIS required in order to enable the XL ContentType parameter to work? What am I doing wrong?