Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » (no subject)
(no subject) [message #717827] Mon, 22 August 2011 13:23 Go to next message
Jason Martin is currently offline Jason MartinFriend
Messages: 2
Registered: August 2011
Junior Member
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 17:53 Go to previous message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

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 Apr 26 23:11:09 GMT 2024

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

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

Back to the top