Hi,
I have a program that prints content of JTextPane to a printer. Everything
works fine when I do not use printDialog() -method. When I use printDialog,
page margins disappears.
eg.(working):
...create JTextPane with HTML content...
...create PrintJob and set printable to it...
printJob.print(); // this way it works, margins exists
eg.(not working):
...create JTextPane with HTML content...
...create PrintJob and set printable to it...
if (printJob.printDialog()) {
printJob.print(); // this way it does not work, margins disappears
}
I'm using SE6.
Thank you for any advice!
[Message sent by forum member 'ksurakka' (ksurakka)]
http://forums.java.net/jive/thread.jspa?messageID=204261
===========================================================================
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".