Yes.  I changed my code so that it now looks like

<CFHEADER NAME="content-disposition" VALUE="inline; filename=#form.myFile#">
<cfcontent type="application/pdf" file="C:\rits\#form.myFile#"
deletefile="No">

Now all browsers display a file download dialog box.  If you select open
this file from current location, you are then given an "open with" box.
Even if you select "always use this program to open this type of file" the
"open with" box is displayed each time.  The desired behavior is for the
browser to display the pdf automatically - which is what the Win2K machines
were doing prior to adding the CFHEADER tag.

-----Original Message-----
From: Carlisle, Eric [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 31, 2001 11:22 AM
To: CF-Talk
Subject: RE: CFCONTENT and PDF


Do the NT and 98 boxes have Adobe Acrobat (or another default PDF viewer)
installed?

        EC

-----Original Message-----
From: Keen [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 31, 2001 2:02 PM
To: CF-Talk
Subject: CFCONTENT and PDF


I am running CF5 on a Win2K server and using the following code to display a
pdf file:

<cfcontent type="application/pdf" file="C:\rits\#form.myFile#"
deletefile="No">

If a browser from a Win2k machine is used then the pdf file is displayed
without any problem.  However when testing is done from browsers on either
NT or 98 the code does not work properly.  In some cases it displays a page
with an ActiveX icon which if clicked on produces the following popup window
while some 98 users report that instead they get a download message.

Error locating object handler.  There is no viewer available for the type of
object you are trying to open.

Has anyone else had this problem?  TIA

Keen


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the mailserver that powers this list at http://www.coolfusion.com
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

Reply via email to