Re: How to print String to default Printer, Help

2000-12-06 Thread Joseph Shraibman
The easiest way is to save to a temporary file, do Process p = Runtime.exec("lpr "+myfilename); p.waitFor(); ... then delete the file. New Java wrote: > > Hi, there, > > What I want to do is: > When the following code running, > print "try to be printed" to my default printer, NOT > my scree

How to print String to default Printer, Help

2000-12-04 Thread New Java
Hi, there, What I want to do is: When the following code running, print "try to be printed" to my default printer, NOT my screen. Could you help me on it? Thanks!! (Sorry for the basic stupid question) David *** public static void main (String args[])