Perry Smith

Java Questions & Answers

Home / Java Q & A Archive Page 3 / Java Q & A Archive

How Do I Send Text to Printer
Thursday, 04-Feb-99 09:25:13

203.124.0.50 writes:

Hi,
I am trying to send some data to be printed to the printer. How should I go about doing it?

Heng


Response
Re: How Do I Send Text to Printer
Thursday, 04-Feb-99 22:04:30

152.172.204.192 writes:

You open an output stream to the printer.

java.io.BufferedOutputStream bosPrint =
new java.io.BufferedOutputStream("LPT1");

and send commands to the printer

what the commands are ... I have no idea (unless you're using a dot-matix printer =o)

MikeD


Home / Java Q & A Archive Page 3 / Java Q & A Archive