Skip to main content



      Home
Home » Archived » BIRT » (no subject)
(no subject) [message #717827] Mon, 22 August 2011 09:23 Go to next message
Eclipse UserFriend
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.
Re: Define printers for server side printing [message #717922 is a reply to message #717827] Mon, 22 August 2011 13:53 Go to previous message
Eclipse UserFriend
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.
Previous Topic:How about BIRT to provide "Multiple Flat Files Connection Manager"
Next Topic:Display Multiple Line Field
Goto Forum:
  


Current Time: Fri Jul 04 14:36:59 EDT 2025

Powered by FUDForum. Page generated in 0.03171 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top