Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Printing to dot matrix
Message
De
20/08/2001 20:31:28
 
 
À
20/08/2001 10:56:47
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00538025
Message ID:
00546529
Vues:
11
>and it works!!
>best - john

Psst...so does DIRPRTCLASS, much better in fact:
SET PROCEDURE TO DIRPRTCLASS ADDITIVE
oPrint = CREATEOBJ('DirectPrintOutput')
oPrint.PrinterOpen('LPT3:')
IF oPrint.PrinterIsOpen()
   ? oPrint.SpoolFile('J:\Random\File\ToPrint')       && spools a copy
   ? oPrint.SpoolFile('J:\Random\File\ToPrint', .T.)  && spools it and deletes it afterwards
ENDIF
oPrint.PrinterOpen('\\SomeComputer\PrintQueueName')
? oPrint.SpoolFile('C:\I can really be annoying\when I name a file.txt')
oPrint.PrinterClose()
...and that's just what the SpoolFile() method does....

Trust me on this one.
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
Répondre
Fil
Voir

Click here to load this message in the networking platform