Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Display a PDF instead of choosing a PDF
Message
 
À
30/04/2001 16:14:38
Information générale
Forum:
Internet
Catégorie:
HTML
Divers
Thread ID:
00501693
Message ID:
00501926
Vues:
14
>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.

FoxWeb allows me to return meta data via the command:

html_out='Content-type header: application/pdf '+chr(10)+chr(10)+ReadFile('D:\Engineering\pdfs\' + mTmpPdfFile)

But here is what happens using I.E. 5.5

When I press the button requesting the report be generated I see it first thinking, then I see the Adobe Acrobate reader start. But then the 'Open With' dialog came up and asked me to 'Choose the program you want to use to open the file' 'webnsp5e6807c5(1)'. I searched my system and found that this file is in my temporary internet files section on my hard drive. My thinking is that I.E. got the message that application/pdf was coming, but read in the stream as a temp file and did not put an extension out in the temp file area. Thus could not figure out how to show it.

Any thoughts?
Bret Hobbs

"We'd have been called juvenile delinquents only our neighborhood couldn't afford a sociologist." Bob Hope
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform