I am using JRUN 3.1 (eval) with IIS 4.0. I am generating FO string and I
want to generate PCL and send it to the network printer. The code I use is
given below:
String printer ="////TS0001T01//prn1";
sendToPrinter(fopString,printer);
public static void sendToPrinter(String foString,String printerName) throws
ServletException, IOException, FOPException
{ InputSource foSource = new InputSource(new
StringReader(foString));
FileOutputStream out = new FileOutputStream(printerName);
Driver driver = new Driver(foSource,out);
driver.setRenderer(Driver.RENDER_PCL);
driver.run();
out.close();
}
But I get FileIO Exception and Access denied. However I am able to copy the
PCL file to printer from the server machine DOS window and that works fine.
( Copy /b t.pcl "//TS0001T01/prn1").
I tried to run a batch job by constructing this in a command line(with
Runtime.getruntime().exec). Then also I get "Access denied" message in the
log.
Any ideas?
Thanks
_raj
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]