Use a content-disposition header, so it will ask if they want to open or save the pdf file, this way would work since IE looks at the extension of the file, not the file contents. If the file ends with .cfm, it tries to display it as text. (not always, but with certain files)
<cfheader name="Content-Disposition" value="inline; file=#pdf_id#.pdf"> <cfcontent type="application/pdf" file="c:\pdf\#pdf_id#.pdf"> ______________________ steve oliver atnet solutions, inc. http://www.atnetsolutions.com -----Original Message----- From: Owen Munton [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 12, 2002 9:31 AM To: CF-Talk Subject: cfcontent, pdf, and internet explorer problems I have a line of code using cfcontent to download a pdf file that works just fine in Netscape, but in IE, it does open acrobat reader, it attempts to display it in the browser. The output starts like this: %PDF-1.2 %���� 1 0 obj<> etc etc etc...... Here is my line of code: <CFCONTENT TYPE="application/pdf" FILE="c:\pdf\#pdf_id#.pdf" reset="yes"> any thoughts, anyone?? Thanks __________________________________________________ Do You Yahoo!? Send FREE Valentine eCards with Yahoo! Greetings! ______________________________________________________________________ Dedicated Windows 2000 Server PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER Instant Activation � $99/Month � Free Setup http://www.pennyhost.com/redirect.cfm?adcode=coldfusiona FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

