Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Printing Problem...
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00156750
Message ID:
00156812
Views:
21
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.com
Would you believe Far Side Lite?
More than 270 original cartoons.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform