Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cfcontent in MX 7 for a PDF - not working

Status
Not open for further replies.

NoWayIsThisInUse

IS-IT--Management
Jul 16, 2002
79
US
I have a site that has been able to view PDFs from links for the last 4 years. That is, until I upgraded to MX 7.
I understand I now need to add the cfheader command above the cfcontent command, such as this:
<CFHEADER NAME="content-disposition" VALUE="inline;filename=#mFile#">
<CFCONTENT TYPE="application/pdf" FILE="#mFile#" DELETEFILE="No">
(I've tried the above with hard-coded file names and have had the same results.)
BUT, it either just displays a blank page and says "Done" on the status bar, or else asks if I want to Open or Save and then on Open it asks how. I then choose Adobe Reader and it finally brings it up. On my Windows XP machine, it always just displays a blank page.
Anybody have a clue what's up?
 
Try adding reset="yes" to the cfcontent tag to ensure that whitespace or output before the cfcontent tag is not causing problems.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top