Configuración del cuadro de diálogo de impresión: pase los valores iniciales

In Java, when I call print dialog box the pages are set print from 1 to 9999. Am splitting the pages based on my JTable numero de fila.

If my table row count is less than 40 then whole printing is in 1 page else the left rows are passed into next page. So my page splitting is based on row count.

Is it possible to pass value to print dialog?

I.E, If row count is 60 page number to be printed is 2.. am I able to set it when dialog box appear?

preguntado el 17 de mayo de 13 a las 07:05

Can any1 help me please..... -

Any one have an idea??? its urgent for me -

1 Respuestas

try to call printerJob.setPageable(Pageable doc) before call printDialog. doc parameter is instance of class which implements Pageable interface. It contains methods to set number of pages, page format etc...

contestado el 23 de mayo de 13 a las 09:05

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.