Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

A Fox 2.6 report convert to PDF

Status
Not open for further replies.

Armida

Technical User
Dec 12, 2008
1
SE
Hi!!!

Somebody knows how can I convert a Fox 2.6 Report into PDF file?

Or could be in HTML Format? or some other different format?

Thanks for any help

A.R.

 
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
?&quot;<html>&quot;
?&quot;<body>&quot;
?&quot;<h2><i><b><center>&quot;
?&quot;This is the ultimate way to print data&quot;
?&quot;<table border=3>&quot;
tot= 0
scan
?&quot;<tr><td>&quot;+state+&quot;</td><td>&quot;,stcount,&quot;</td>&quot;
tot = tot+stcount
endscan
?&quot;<tr><td>your state total is</td><td>&quot;,tot,&quot;</td>&quot;
?&quot;</table>&quot;
?&quot;</body>&quot;
?&quot;</html>&quot;
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.

 
The easiest way to do this is buy a PDF printer driver, and switch the current printer to it before printing the report.

Rick
 
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.

David W. Grewe
Dave@internationalbid.com
 
Go to and enter &quot;PDF Printer&quot; or &quot;HTML Printer&quot; into their search window and you will get a variety of Shareware and Freeware results.

Good Luck,
jrbbldr
jrbbldr@yahoo.com
 
Rick....

&quot;The easiest way to do this is buy a PDF printer driver, and switch the current printer to it before printing the report.&quot;

A question for you....so you would not need to buy a copy of Adobe's Acrobat *Writer* ($450?) program?

How would you programaticaly change the printer to the PDF driver in 26?

Regards - Wayne

 
Wayne,
Yes, you'd need to spend the $450 for each user that wants to be able to print to the PDF &quot;printer&quot;, 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 - &quot;HOWTO: Change the Default Windows Printer from FoxPro (Q103645)&quot;.

Rick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top