>I tried your solution and it does not work. When I change the strint 'G' with chr(71), in dos the reports does'nt work anymore and with VFP6 it still does not print my symbols or print in bold format. I also tested many combination of those character sequence. Do you use rawprint with VFP6? I only fount rawprint3 for vfp3 and rawprint5 for vfp5.0a.
>
>My real goal is instead of having
>Set print on
>Set device to printer
>...
>Set print off
>
>I would to use
>Set device to file test.txt
>...
>Call rawprint && Or anything else that will print a text file
>
>With that, the changes I make are reduce to the minumum. But right now, I am not capable of printing a text file with rawprint.
If you take a look in the FAQ, there's an entry on how to copy a file to a printer that I wrote using the CopyFile() Win32 API call - it can write to device ports by name, network printers by UNC, and always bypasses the print spooler and Windows interpretation of the file content. You create your file with whatever content as far as control characters, etc that you like, and then use the API call to send it where you like.