Hi Piet thanks for your help, I am trying to resolve my problem using your code
but it did not worked. I am still getting the size A5 no matter what I try to
define. I don't know if I am missing something. Please look at the following
code and see if you can find what I cant find.
PageFormat pageFormat = createFormat();
try {
job.setPrintable(this,pageFormat);
if (job.printDialog()) {
job.print();
}
} catch (PrinterException e) {
e.printStackTrace();
}
private PageFormat createFormat() {
PageFormat format = new PageFormat();
format.setPaper(new Custom());
return format;
}
private class Custom extends Paper {
public Custom() {
super();
setSize(491, 594);
setImageableArea(36.0, 36.0, 522.99212598425197,
450.8897637795276);
}
}
[Message sent by forum member 'lucho01' (lucho01)]
http://forums.java.net/jive/thread.jspa?messageID=241236
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".