Focal Point
PDF Output From Developer Studio Requests 'Save File' Instead Of Displaying

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/9311008962

February 04, 2008, 12:42 PM
Ron Woods
PDF 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


Ron Woods
San Antonio Express-News
Release: WebFOCUS 7.1.1
OS/Platform: Windows XP SP2 x86 32bit
O/P Formats: Primarily pdf and xls
February 04, 2008, 01:25 PM
TexasStingray
Here 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
mgrackin
There 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".


Thanks!

Mickey

FOCUS/WebFOCUS 1990 - 2011
February 04, 2008, 04:27 PM
Anatess
Ron, 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.


WF 8.1.05 Windows
February 05, 2008, 01:35 PM
Ron Woods
Found the problem - Adobe Reader 8.0 was corrupted. Just did an update and all works fine now.


Ron Woods
San Antonio Express-News
Release: WebFOCUS 7.1.1
OS/Platform: Windows XP SP2 x86 32bit
O/P Formats: Primarily pdf and xls