I have a download page that draws data from an Image datatype in SQL Server and generates the requested file from the database. (The data is in the database, I know it would be better to house this on a file server and point to it - this is necessary though)
I can get every type of document to work perfectly through simple use of Response.ContentType of the individual files, *except* for PDF documents.
I have these opening into a new window, when the new window opens for a PDF doc, IE appears to load the reader, but then the page is blank. Looking at the source code gives me, "<P>&nbsp;</P>" - no errors, just no data. Like I said, this works perfectly with images, word docs, etc. Thoughts, ideas or suggestions? I even tried the .AddHeader info to no avail. Below is the necessary code snippets.
' set the content type to PDF
Response.ContentType = "application/pdf"
' add content type header
Response.AddHeader "Content-Type", "application/pdf"
' set the content disposition
Response.AddHeader "Content-Disposition", "inline;filename=form.pdf"