Re: [Retep-PDF] (no subject)
Status: Beta
Brought to you by:
petermount
From: Peter M. <pe...@re...> - 2004-06-28 13:07:42
|
Caballero Caballero, Jose wrote: > 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? Not off hand, but I'll try to reproduce it. What version of the JDK/JRE are you running, and which OS? May help in reproducing this problem. Peter -- Peter Mount pe...@re... http://retep.org/ http://retep.net/ Tel: +44 (0) 1622 749439 Fax: +44 (0) 8701 361620 Mobile: +44 (0) 7838 191423 IM-MSN: ret...@ho... |