Hello. I'm a new member of ACFUG, returning to CF after a five-years away from programming. We were at CF5 when I left, and it's a pleasure to see all the new capabilities that have been added since then. This is my first posting to the Discussion section, so I hope I figured out correctly how it's done.
Here's my problem, which ought to be simple, or so I would think: I want to load a PDF to a <cfwindow>. However, when I place the PDF on an arbitrary directory, thus: <cfwindow name="theScannedStyle" title="Scanned Style for Job #cJobNo#" headerStyle="background-color:c10026" modal="true" source="c:/Scanned Styles/515/51510.pdf?cfdebug" x="10" y="10" initShow="true" closable="true" resizable="true" /> ...I get an error message inside the window saying: "Error: Unable to open connection to URL c:/Scanned Styles/515/51510.pdf?cfdebug" Plus an alert window saying 'Error retrieving markup for theScannedStyle_body, unable to open connection to URL c:/Scanned Styles/515/51510.pdf (followed by a suggestion that I add cfdebug to my URL parameters, but that made no difference in the amount of information I was given) When I place the pdf on the same directory as the web page, thus: <cfwindow name="theScannedStyle" title="Scanned Style for Job #cJobNo#" headerStyle="background-color:c10026" modal="true" source="51510.pdf?cfdebug" x="10" y="10" initShow="true" closable="true" resizable="true" /> ... there's no alert box this time, but the window contains only the cryptic: %PDF-1.3 %??4 0 obj <>] /Decode[1 0] /Length 5 0 R >> stream That suggest that it found the file this time but not the other time, although I assure you the file exists on the directory referred to. But although it seems to have found it, it didn't display it, as you can see. I also tried the same code as above, but with 'loadPDF.cfm' as the source, where loadPDF.cfm contains only the code below: <cfpdf name='MyPDF' action="read" source="51510.pdf"> <cfdump var="#MyPDF#"> However, that simply fills the window with the metadata (author, etc.) What am I doing wrong? Thanks for your help, Peyton ------------------------------------------------------------- Annual Sponsor FigLeaf Software - http://www.figleaf.com To unsubscribe from this list, manage your profile @ http://www.acfug.org?fa=login.edituserform For more info, see http://www.acfug.org/mailinglists Archive @ http://www.mail-archive.com/discussion%40acfug.org/ List hosted by http://www.fusionlink.com -------------------------------------------------------------