February 04, 2008, 12:42 PM
Ron WoodsPDF Output From Developer Studio Requests 'Save File' Instead Of Displaying
Whenever I try to run a PDF report out of Developer Studio (711) instead of putting the report in the browser (IE) I receive the 'File Download' dialog box. The dialog box tells me the file cannot be opened by the default program.
I have checked my file types and PDF starts Adobe Reader 8.0. I can open PDF files in other websites using IE without a problem.
Is this a setup issue?
Thanks,
Ron Woods
San Antonio Express-News
February 04, 2008, 01:25 PM
TexasStingrayHere is an option that allows the user to open or download.
-* File PDFFile.fex
-SET &PDFFILE = 'CAR' | EDIT(&MDYY, '99999999') | EDIT(&TOD, '99$99$99') | '.PDF';
-SET &URLPATH = '/approot/temp/' || &PDFFILE;
-SET &FNAME = 'C:\\IBI\\APPS\\TEMP\\' || &PDFFILE;
FILEDEF TMPCAR DISK &FNAME
-RUN
? FILEDEF
TABLE FILE CAR
PRINT DCOST RCOST
BY COUNTRY BY CAR BY MODEL
ON TABLE SAVE AS TMPCAR FORMAT PDF
END
-RUN
-HTMLFORM BEGIN
<HTML>
<HEAD>
<TITLE>Download</TITLE>
</HEAD>
<BODY><CENTER>To save a copy to your computer richt click <a href="&URLPATH">Here</a> and select "Save target As ...", or Click to open</CENTER>
</BODY>
</HTML>
Hope this helps
February 04, 2008, 01:59 PM
mgrackinThere is a setting in Adobe Reader that controls whether or not to display in the browser window.
Start the Adobe Reader. Then check "Edit --> Preferences" and then "Internet".
February 04, 2008, 04:27 PM
AnatessRon, when you run a different fex with output to PDF, do you get the same download message? For example, running a simple TABLE FILE on the CAR file. If other fexes opens up PDF without a problem, then you may have some syntax issues in your code. Yes, I've had this happen to me before. If this is the case, then you might want to post your code here for others to peruse.
February 05, 2008, 01:35 PM
Ron WoodsFound the problem - Adobe Reader 8.0 was corrupted. Just did an update and all works fine now.