The web viewer uses the following code to find server side printers:
public static List findPrinters( )
List printers = new ArrayList( );
PrintRequestAttributeSet pras = new HashPrintRequestAttributeSet( );
DocFlavor flavor = DocFlavor.INPUT_STREAM.POSTSCRIPT;
PrintService printServices = PrintServiceLookup.lookupPrintServices(
flavor, pras );
if ( printServices != null )
for ( int i = 0; i < printServices.length; i++ )
PrintService service = printServices[i];
printers.add( createPrinter( service ) );
So the printer must support postscript. Do your printer definitions
On 8/22/2011 9:23 AM, Jason Martin wrote:
> Is there a way to define which printers are to be used for server side
> printing? I am able to get the dialog box to pop up but there are no
> printers to choose from to print to.
> I have multiple printers installed on this machine either via a print
> server or directly installed and nothing shows up.
> Any advice would be appreciated.