Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
PDF Issue
Message
From
29/06/2001 15:08:05
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:
00525348
Views:
14
Try "loHeader.SetProtocol()" before the
response.ContentTypeHeader("application/pdf") line.

>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
Reply
Map
View

Click here to load this message in the networking platform