Information générale
Catégorie:
West Wind Web Connection
Sorry try the following this was in the demo sample which seems to work with W95 and W2K.
lcpdf = opdf.PrintReportToString("custlist.frx")
loHeader = CREATEOBJECT("wwHTTPHeader")
loHeader.SetProtocol()
loHeader.SetContentType("application/pdf")
loHeader.AddHeader("Content-Length",TRANSFORM(LEN(lcPDF)))
loHeader.AddHeader("Accept-Ranges","bytes")
loHeader.AddHeader("Connection","Close")
>I can not get a pdf file to display in IE without clicking on refresh. Once refresh is clicked, the report displays just fine.
>
>
>software specs:
>WIN2K pro
>IE 5.5
>VFP 6.0 sp 5
>Acrobat 4.0
>WWC 3.65
>IIS
>
>If anyone can see what obvious mistake I am making, a point in the right direction would help. I get the same issue when running the same code on WIN 98 machine running personal web server
>
>The code I am using for simple testing is as follows
>
>*------------------------------------------
>* test pdf
>*------------------------------------------
>function pdfreport
>
>set proc to wwapi additive
>set proc to wwpdf additive
>
>lccompany = UPPER(Request.Form("company"))
>
>select * ;
> FROM tt_cust ;
> order by company ;
> where upper(company) = lccompany ;
> into cursor tquery
>
>
>opdf=create("wwpdf40")
>
>lcpdf = opdf.PrintReportToString("custlist")
>
>response.ContentTypeHeader("application/pdf")
>response.write(lcpdf)
>return
>endfunc
>*------------------------------------------
>* end test pdf
>*------------------------------------------
>
>Thanks
>
>Alan Wyne
>Rollpak Corp
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement