Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #19265
| Newsgroups | comp.lang.java.programmer |
|---|---|
| Date | 2012-10-12 09:51 -0700 |
| References | <ch1aai$hm5$1@news.onet.pl> |
| Message-ID | <8da903e0-285e-49db-a74c-21a1377e7cb5@googlegroups.com> (permalink) |
| Subject | Re: PrintJob.setName() equivalent in DocPrintJob |
| From | ulises.sci@gmail.com |
On Tuesday, August 31, 2004 2:45:41 AM UTC-5, staff wrote: > Hello all, > > I was using PrintJob for printing, but now I have to use DocPrintJob. In > PrintJob there was method setName() for setting job name. In DocPrintJob > there is no such method, and I couldn't find any similar doing the same > thing. > > Does anyone know how to set name of DocPrintJob? > > Thanks in advance > Pawel Stawicki I see this is an old issue, but for future reference you can use: //Create Object to store attributes PrintRequestAttributeSet aset = new HashPrintRequestAttributeSet(); //Add the jobname as attribute aset.add(new JobName(pdfFile.getName(), Locale.getDefault())); ... DocPrintJob docPrint = ps.createPrintJob(); docPrint.print(printDoc, aset);
Back to comp.lang.java.programmer | Previous | Next | Find similar | Unroll thread
Re: PrintJob.setName() equivalent in DocPrintJob ulises.sci@gmail.com - 2012-10-12 09:51 -0700
csiph-web