Why don't you use Printer.print instead of printing to lpt1?
It is just that printing to a port is old technology. It still there for backwards compatibility.