|
Re: Define printers for server side printing [message #717922 is a reply to message #717827] |
Mon, 22 August 2011 17:53 |
|
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 ) );
}
}
return printers;
}
So the printer must support postscript. Do your printer definitions
support it?
Jason
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.
|
|
|
Powered by
FUDForum. Page generated in 0.07539 seconds