Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Printing problem  RSS feed

 
Ben Wood
Ranch Hand
Posts: 342
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello!
I have a small printing problem. I am using a simple, non-book based method of printing a component and need to use both landscape and portrait orientations for printing different parts of my application. Problem is, when I print in portrait the whole sheet of paper is used, but when I print in landscape it just prints within the square area on the paper defined by PageFormat.getImageableHeight(). But getImageableWidth() definitely returns the correct value for the orientation width, but when I print it gets chopped off at the return value of getImageableHeight()! Any ideas anyone? Here's some code...

cheers,
Ben.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!