[Retep-PDF] (no subject)
Status: Beta
Brought to you by:
petermount
|
From: Caballero C. J. <jos...@ju...> - 2004-06-28 09:58:14
|
I am using retep-2.4.1 to print pdf files. I ask to the user to select
the printer but sometimes you need twice or more times calling
ServiceUI.printDialog to obtain all the printers added to the computer.
First time only appear retepPDF. I call it :
PrintRequestAttributeSet pras = new HashPrintRequestAttributeSet();
pras.add(MediaSizeName.ISO_A4);
pras.add(new Copies(1));
pras.add(new PageRanges(new
String("1:"+_NumeroPaginas)));
DocFlavor flavor = DocFlavor.INPUT_STREAM.AUTOSENSE;
PrintService[] services =
PrintServiceLookup.lookupPrintServices(null, pras);
_service = ServiceUI.printDialog(null, 100, 100,services, null,
null, pras);
Any idea to solve it?
Pepe Caballero
|