Java printing
Hello !I have a java aplication wich print a document. I need a java code "to tell" me the number of pages of document and number of copies to be printed.
imlpement java.awt.print.Printable, the print method is where you do the graphics, and you return NO_SUCH_PAGE when there are no pages left. Since this method has to know how many pages to print, you could add a method that returns the number of pages.