My code is something like this:
In the Click procedure of a Print command button:
GET PRINTER()
SET PRINTER ON
SET ALTERNATE TO a text file
I create the report using
? 'THIS IS MY REPORT'
?
? 'THAT'S AN EXAMPLE'
Then,
In the Valid procedure of a Print command button:
CREATE CURSOR TEXTFILE(filename c(60),mem m)
and then APPEND MEMO mem FROM report.txt
EJECT PAGE
SET PRINTER OFF
Steve Kramer
Kramer & Kramer Design
"Home of Go Cartoons"
Web Site:
www.stephenkramer.comWould you believe Far Side Lite?
More than 270 original cartoons.