>-----Original Message----- >From: Paige Chandler [mailto:[EMAIL PROTECTED] >Sent: Wednesday, June 11, 2003 2:12 PM >To: CF-Talk >Subject: Displaying PDFs > > >Hello All, > > >When displaying a .pdf file can that be accomplished by >"calling" it from a >button or does it have to be "called" from a image - .jpg for >instance? > >The below is page 13 of my web sit. As you can see it calls >page 14 or page >15 > ><CFIF >FileExists(ExpandPath("./Images/#Trim(Session.Client_ID)##Trim(Session >Insured_ID)#2.jpg"))> > <INPUT Type="button" Value="View Certificate - page 1 of 2" Name= >Search1" >onClick="window.location='http:\CVS3WP14.CFM'"> > <INPUT Type="button" Value="View Certificate - page 2 of 2" Name= >Search1" onClick="window.location='http:\CVS3WP15.CFM'"> ><CFELSE> > <INPUT Type="button" Value="View Certificate - page 1 of 1" Name= >Search1" onClick="window.location='http:\CVS3WP14.CFM'"> ></CFIF> > > >Page 14 is now coded as: > ><CFOutPut> ><a href="Page 1"><font size="2" >face="Arial"><strong>"/Images/#Trim(Session >Client_ID)##Trim(Session.Insured_ID)#1.pdf"</strong></font></a> ></cfoutput> > >It displays the code not the image. What am I doing wrong? TIA. > >Paige
The code does not display an image nor is a PDF an image. Your code is creating a standard link to your PDF file. If you want to display the actual PDF file, look into the CFCONTENT tag. Doug > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. http://www.cfhosting.com Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

