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
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[])