Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Creating a page to print

0 views
Skip to first unread message

The87Boy

unread,
Dec 22, 2009, 6:22:56 PM12/22/09
to
Hey

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

Jeff Higgins

unread,
Dec 22, 2009, 8:01:11 PM12/22/09
to

John B. Matthews

unread,
Dec 22, 2009, 8:18:43 PM12/22/09
to
In article
<c71f8b56-584c-44fa...@v25g2000yqk.googlegroups.com>,
The87Boy <the8...@gmail.com> wrote:

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>

Roedy Green

unread,
Dec 22, 2009, 9:19:12 PM12/22/09
to
On Tue, 22 Dec 2009 15:22:56 -0800 (PST), The87Boy
<the8...@gmail.com> wrote, quoted or indirectly quoted someone who
said :

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)

0 new messages