Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Display a PDF instead of choosing a PDF
Message
 
To
30/04/2001 16:14:38
General information
Forum:
Internet
Category:
HTML
Miscellaneous
Thread ID:
00501693
Message ID:
00506296
Views:
18
>Bret,
>
>>What I would like is that the above intermediate screen not be shown, but just have Adobe come up after FoxWeb does its work.
>>
>>Any suggestions?
>
>Return the pdf contents as a string with the following content type header:
application/pdf
. Sorry, I can't tell you how to do that with FoxWeb, but I'm sure you must be able to set the content type header, can't you? It's the same thing you would do if you were returning a Word document to the browser from a web request.

I know this is late David, but I like to put endings to questions. Today I figured out how to get the PDF brought up in the browser after a report is generated with out an intermediate screen. What I did was tell FoxWeb just to set the html location to the pdf file and let the browser decide what to do with it. So I just did:

* Return the page with our PDF image location
html_out="Location: "+pdffile+CHR(10)+CHR(10)
RETURN

the variable pdffile contains the full server vertual locations to the pdf file. e.g. https://server.navy.mil/pdfs/f12345.dpf

Then when the user would press the SUBMIT button on the html page to generate a report. FoxWeb would take over and create the PDF. Once finished FoxWeb would send back the location of the pdf. The browser would then just bring up Adobe and display the report.

I guess I was just making it harder than it should have been.
Bret Hobbs

"We'd have been called juvenile delinquents only our neighborhood couldn't afford a sociologist." Bob Hope
Previous
Reply
Map
View

Click here to load this message in the networking platform