General information
Category:
ActiveX controls in VFP
>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only