Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Print text to Printer
Message
De
11/07/2000 12:37:05
 
 
À
11/07/2000 02:43:17
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00390619
Message ID:
00390804
Vues:
10
Open the printer like a file...
Open "LPT1" For Output AS #1
Print #1, Tab(10); "Hello"
Print #1, Spc(3); "World
Close #1

If you put a comma at the end of the line, the printer will stay on the same line
You can also, instead of the "LPT1", give the name of your printer or even a remote printer by specifing the path like: "Machine1\LaserJet"

Hope this help..

Patrice Merineau
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform