Re: How to serve a pdf file and view it inside the explorer

Giganews Newsgroups
Subject: Re: How to serve a pdf file and view it inside the explorer
Posted by:  Meftah Tayeb (tayeb.meft…@gmail.com)
Date: Sat, 28 Feb 2004

hello,
please what is your Server Syde Technologie ?
do you use PHP, ASP, JSP or ColdFusion ?
if yes, do this Step:
if you use the ASP or ASP.Net Technologie, create a ActiveX Control, and
Assign it a  property
Exemple
PDFFileName
pu the File Name Generated Using this Server to the ActiveX Control Property
Name (PDFFileName)
otherwise, convert the PDF FileName Generated from this Server to a HTML
Code, and Pu it in a FRAME

Thanks
MeftahTayeb
"Chus GZarco" <jagarcia_cointec_nospam@nospam.hotmail.com> a écrit dans le
message de news:
9AAFF44E5349E340jagarcia_cointec_nospam@nospam.hotmail.com...
>I have a little httpserver that serves reports in pdf format.
>
> When i serve the file, the explorer always ask to open the file and
> opens the file in another window.
>
> Is there any option to serve the pdf file to force the explorer to open
> it inside the explorer.
>
> Thanks.
>
> The request is http://localhost:8000/informe?idpeticion=6427
>
> the server create an pdf document and send it to the client.
>
> AResponseInfo.ResponseNo  := 200;
> AResponseInfo.ContentText := ExtractFileName( ArchivoInforme );
> AResponseInfo.ContentType := MIMEMap.GetFileMIMEType( ArchivoInforme );
> ByteEnviados              := AResponseInfo.ServeFile( AContext,
> ArchivoInforme );
> --

Replies

None

In response to

How to serve a pdf file and view it inside the explorer posted by Chus GZarco on Wed, 20 Feb 2008