Get number of copies from print dialog
Hi All,
I am using javax.print API to display the print dialog, I am also able to successfuly print a document.
My questions is how can get number of copies from the print dialog.
I did log of googling, but no sucess...I have been trying from 1 day.
Please help me.
Thanks in advance.
[323 byte] By [
imogala] at [2007-11-26 22:52:57]

Here is the code:// TODO Auto-generated constructor stub
PrintService[] services = PrintServiceLookup.lookupPrintServices(null, null);
PrintService defaultPrinter = PrintServiceLookup.lookupDefaultPrintService();
PrintRequestAttributeSet attrs = new HashPrintRequestAttributeSet();
selection = ServiceUI.printDialog(
null, 100, 100, services, defaultPrinter, null, attrs);
if(selection!=null){
selectedPrinter = selection.getName();
}
Now once the printDialog is displayed i want to get the number of copies selected by the user. I tried all different options from Attribute, but not successful.
Please help...
Thanks.