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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

print to file in FPW 26

Status
Not open for further replies.

maheshmd

Technical User
Jun 11, 2003
7
US
Want to print to file.
Using Foxpro Windows 2.6
Had .frx file created in Foxpro dos that kept on working (to file) in Fox windows.
Now as I need to make changes in repot layout, can't open unless Transported to FoxWin.
After transport to FoxWin, with 'SET PRINTER TO <FILE> " still prints on printer.
I think problem is in .frx file (as tansported).
HELP !!!!
THANKS.
 
After having made your changes to the Report Form and Saved them, have you 'hacked' the FRX file to eliminate any inherited printer settings?

If not, as long as your Report Form is not in Landscape orientation, then:
Code:
cMyReport = "MyReport.frx"  && or fully pathed name
USE (cMyReport) IN 0 ALIAS MyRptForm
SELECT MyRptForm
REPLACE Expr WITH "", Tag with "", Tag2 WITH "" FOR RECNO() = 1
USE

If Landscape orientation, then do the same thing to Tag & Tag2, but for Expr open the Memo field manually and eliminate everything but the ORIENTATION line.

Good Luck,
JRB-Bldr
 
Thank u very much.
I will try it tomorrow, then let u know.
 
I tried the hackfix.
Did not work.
i did it EXACTLY as u suggested.
Still printed to printer.
Any more ideas?
Thanx
 
What is the code that you are using to print the report?

Let's see if there is something else going on there.

Good Luck,
JRB-Bldr
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top