Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
PDF Issue
Message
De
29/06/2001 14:56:05
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
West Wind Web Connection
Titre:
PDF Issue
Divers
Thread ID:
00525338
Message ID:
00525338
Vues:
45
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform