Hello!! I need your help. I want to print some text in PORTRAIT and another text in LANDSCAPE in the same page. I'm triying to do this with the next code: Graphics.drawString("TEXT IN PORTRAIT", 10, 10); //Change orientation PageFormat.setOrientacion(PageFormat.LANDSCAPE) Graphics.drawString("TEXT IN LANDSCAPE", 10, 10); But it doesn't work. Thank you.
Hi, I think, this doesn't work in this way. You can't change the PageFormat during printing. Seems to me, that you want do do something like a crossword. You have to do some calculations in your paint method if you want to do so. Maybe you have a look to java.awt.font package. I think this feature already exists.
He loves you so much! And I'm baking the cake! I'm going to put this tiny ad in the cake:
Free, earth friendly heat - from the CodeRanch trailboss