Hi, Ive seen a lot a threads on this topic, and ill try to do it justice. First of all on a pdf output. you have to have adobi page maker version that will act as a print driver. not sure how to do this, you will have a few problems with wizard built reports in that your line may or may not show up corectly.
As for html, this is my favorite method of making fox26 make cool output.
ie:
use <filename> index <whatever> && say fields state,stcount
set printer to file c:\temp\outfile.htm
set printer on
?"<html>"
?"<body>"
?"<h2><i><b><center>"
?"This is the ultimate way to print data"
?"<table border=3>"
tot= 0
scan
?"<tr><td>"+state+"</td><td>",stcount,"</td>"
tot = tot+stcount
endscan
?"<tr><td>your state total is</td><td>",tot,"</td>"
?"</table>"
?"</body>"
?"</html>"
set printer to
set printer off
!explorer c:\temp\outfile.htm && win98 or higher
the trouble with being the early bird: sometimes you get the worm... sometimes you get the bird.
AMYUNI Software makes a PDF and a HTML print driver that works with any version of FoxPro or Word Or Excel Or etc.. They are $99.00 each, Or that is what they were when I bought them 2 years ago.
Wayne,
Yes, you'd need to spend the $450 for each user that wants to be able to print to the PDF "printer", if you go the Acrobat route. The other responders have pointed you to other (cheaper) alternatives - I actually use the 5D PDF driver.
To change the printer, you can add the PROMPT clause to your REPORT command, or you can prompt the user to change it with SYS(1037). You can also change the default printer using the code in
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.