Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
PDF Issue
Message
From
29/06/2001 15:48:24
Monte Murdock
Universal American Mortgage Company
Clearwater, Florida, United States
 
 
To
29/06/2001 14:56:05
General information
Forum:
Visual FoxPro
Category:
West Wind Web Connection
Title:
Miscellaneous
Thread ID:
00525338
Message ID:
00525378
Views:
13
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform