I am searching for a way to generate a page from Java, which only
should contain a table and of course some content in it
The table should be fit to the page, but you should have the
possibility to change the margin of the page
Does anybody have a solution for this, because I tried to google
without any result
See "The Java Print Service User Guide":
<http://java.sun.com/javase/6/docs/technotes/guides/jps/index.html>
Within the MediaPrintableArea, margins are up to you.
--
John B. Matthews
trashgod at gmail dot com
<http://sites.google.com/site/drjohnbmatthews>
The basic idea is you write a program as if you wanted to paint the
page on the screen, then you make a small change to the program to
paint on the printer instead of the screen.
see http://mindprod.com/jgloss/printing.html
for the basics. That may help give you the lay of the land to let you
make sense of more detailed documentation.
--
Roedy Green Canadian Mind Products
http://mindprod.com
If you think it�s expensive to hire a professional to do the job, wait until you hire an amateur.
~ Red Adair (born: 1915-06-18 died: 2004-08-07 at age: 89)