Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
RAWPRINT5.FLL
Message
From
29/09/1999 11:50:28
 
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
Miscellaneous
Thread ID:
00268322
Message ID:
00270556
Views:
24
>Thank you, Rick

PMFJI: Just checking in after some time out of town... A clarification to Rick's notes -- you can use RawPrint to send any kind of output to the printer or serial port -- not dependent on a report form. So, for your example, just do

SET DEVICE TO PRINT
SET PRINTER TO xxx.TXT
@ 1,0 say 'xxxxxx'
@ 2,0 say 'yyyyyy'
SET DEVICE TO SCREEN
SET PRINTER TO

Then invoke RawPrint to 'squirt' the xxx.txt file out to the printer, as in Rick's code.

We use this technique extensively for some home-grown mail merge output. Also, you can use STRTOFILE() to save your output first directly from a memvar character string, and the RawPrint.Fll even lets you send the character string right out the port without the need to create the intermediate text file -- which could be a big aid in performance if you have a lot of these to do in a loop or something... RawPrint is definitely a COOL TOOL!

HTH

Rob
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform