• Post Reply Bookmark Topic Watch Topic
  • New Topic

Printing in Landscape, problem with margins  RSS feed

 
H Melua
Ranch Hand
Posts: 172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello
I'm trying to print in landscape, and thanks to god it works, BUT i'm having trouble with setting the margins, i managed to set the Top/Button/Right margins with no problem... but i couldnt change the Left one! Using method paper.setImageableArea(16, 16, 805, 951) cuts off the start of the text printed, and the margin is still 1 inch, and i want it reduced! how am i supposed to change it?

This is the code i think you might want to see...

thanks
HannaH
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24215
37
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm going to move this to our "Swing/AWT/SWT/JFace" forum. It's definitely not a Beginner Java question!
 
John Wetherbie
Rancher
Posts: 1449
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"H Melua",

Please review the JavaRanch Naming Policy and modify your display name.
 
H Melua
Ranch Hand
Posts: 172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry sir, i think you the one who needs to review the policy!

You can even use initials for the first name if you like.


HannaH
[ February 03, 2006: Message edited by: H Melua ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!