Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Escape sequence with a dot matrix printer
Message
De
20/10/1999 07:43:33
 
 
À
19/10/1999 11:41:00
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00277848
Message ID:
00278688
Vues:
52
>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.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform