Gorka Echevarría Vélez wrote:
>Can anybody say me how can I send a document directly to a printer?
>I have tried the following code to render the document to a printer using
>"Driver.RENDER_PCL", but it doesn´t work (i get the exception
>"file.io.FileNotFoundException")
>    String printer ="////ntsrv_200//prn1";

Jens Thieler wrote:
>> And do try backslahes.

Christian Beer wrote:
>>> P.S: DON'T USE BACKSLASHES - PLEASE!!! It's a windows thing!!! Use
slashes
>>> in filenames for java !!

Jens Thieler wrote:
>>>> rubbish

You may (and in this case: should) use slashes on windows machines,
but don't overdo it.
It's either "//ntsrv_200/prn1" or "\\\\ntsrv_200\\prn1".

Jens Thieler

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to