I am wondering what will be a good solution in such a sceanario:
you use
Java Servlets/JSP to retrieve data from database and
present them in a table,like most applications do. The table
will contain 100 rows,and you are permitted to present the
table in one homepage like below:
Table Title
--------------------------------------------------
|----|----|----|----|-----|-----|-----|-----|-----|
|-------------------------------------------------|
......
This is a easy work.
But you boss also want to print this table,i.e,there
is a button in the page and when he press it,the table
will get printed with his printer,also,the printed
table should be in a "nice" format: 25 rows per page,
and there is a 'title' header in every page.
So,what is your opinion?
I don't think there is instant solution here,
the problems are:
1,how the client side script start the printer job?Maybe
need a standalone client application?
2,how to generate the "printer friendly" pages?
Maybe,it is better to transform the table to a .PDF file so
the client can print it with Acrobat Reader?Is there any
XXX2PDF package there?
I am just very intereted in this problem and hope to find
a way to deal with it.