Date:  10/20/2002 06:00:56 PM Msg ID:  000941
From:  Joe Cooperrider Thread:  000941
Subject:  Displaying PDF
Hello all,
 
I am trying to write a function that displays a pdf file. I have a variable to store the passed file name. I am then trying to display the file with the following:
 
m.lc_filename=formfield("PDFNAME")
HML_OUT="Content type: application/pdf"+chr(10)+chr(10)+readfile(m.lc_filename)
return
 
It works on a couple of files but on 99% of files it returns the pdf code without launching Acrobat.
 
Any ideas????
 
Thanks