Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Active FoxPro pages
Message
 
To
28/11/2002 16:07:18
General information
Forum:
Visual FoxPro
Category:
Third party products
Miscellaneous
Thread ID:
00727544
Message ID:
00728154
Views:
15
Hi Christian,

>It would be nice if you could give me some ideas on how to implement this on an afp page, to output the report on PDF.
>(It would not be enough to let the user download the pdf file, it should open right away in explorer.)

You could create a page "GetPDF.afp" which looks similar to this. Of course, you have to add the actual generation process.
<%
  * generate the PDF file and read it into lcPDF
  * FILETOSTR() is just an example
  lcPDF = FILETOSTR(JUSTPATH(FILE.GetLocation())+"\Sample.PDF")

  * Display the PDF file in the browser
  Response.ContentType = "application/pdf"
  Response.AddHeader( "Content-Disposition", "inline" )
  Response.BinaryWrite(m.lcPDF)
%>
Christof
--
Christof
Previous
Reply
Map
View

Click here to load this message in the networking platform