equal
deleted
inserted
replaced
1386 |
1386 |
1387 DocPrintJob job = psvc.createPrintJob(); |
1387 DocPrintJob job = psvc.createPrintJob(); |
1388 Doc doc = new PageableDoc(getPageable()); |
1388 Doc doc = new PageableDoc(getPageable()); |
1389 if (attributes == null) { |
1389 if (attributes == null) { |
1390 attributes = new HashPrintRequestAttributeSet(); |
1390 attributes = new HashPrintRequestAttributeSet(); |
|
1391 attributes.add(new Copies(getCopies())); |
|
1392 attributes.add(new JobName(getJobName(), null)); |
1391 } |
1393 } |
1392 try { |
1394 try { |
1393 job.print(doc, attributes); |
1395 job.print(doc, attributes); |
1394 } catch (PrintException e) { |
1396 } catch (PrintException e) { |
1395 throw new PrinterException(e.toString()); |
1397 throw new PrinterException(e.toString()); |