in reply to How to print to a printer

That cannot be done platform independent. On UNIX, using lp or lpr is the most platform independent way you can get (some OSses offer both lp and lpr. But one is BSD, the other System V), but options may vary.

Abigail