Hi there,
has anyone got an example on how to implement PCL and/or Postcript printing
directly to a printer in a servlet using FOP? Couldn�t find anything like
it.
....Yepp
OutputStream out = null;
//IP-Stream Printing
if( iPPrinting)
{
Socket s = new Socket( printerName, printerPort );
out = s.getOutputStream();
}
//UNC Printing (e.g //printserver/printer)
else
{
out = new FileOutputStream( printerName );
}
PrintWriter writer = new PrintWriter( out );
writer.write( postScriptByteArray );
boolean retValue = writer.checkError() == false;
writer.close();
***
hope that helps
cu Torsten
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]