Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #19265 > unrolled thread
| Started by | ulises.sci@gmail.com |
|---|---|
| First post | 2012-10-12 09:51 -0700 |
| Last post | 2012-10-12 09:51 -0700 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.java.programmer
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: PrintJob.setName() equivalent in DocPrintJob ulises.sci@gmail.com - 2012-10-12 09:51 -0700
| From | ulises.sci@gmail.com |
|---|---|
| Date | 2012-10-12 09:51 -0700 |
| Subject | Re: PrintJob.setName() equivalent in DocPrintJob |
| Message-ID | <8da903e0-285e-49db-a74c-21a1377e7cb5@googlegroups.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 top | Article view | comp.lang.java.programmer
csiph-web