Information générale
Catégorie:
Contrôles ActiveX en 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
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement