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]
# 1
What "print dialog" is that? It would help if we started from the results of your 1 day of work rather than starting at zero. Post the code you have so far.
DrClapa at 2007-7-10 12:15:53 > top of Java-index,Java Essentials,Java Programming...
# 2

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.

imogala at 2007-7-10 12:15:53 > top of Java-index,Java Essentials,Java Programming...