Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Print text to Printer
Message
From
11/07/2000 12:37:05
 
 
To
11/07/2000 02:43:17
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00390619
Message ID:
00390804
Views:
11
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform