wood burning stoves 2.0*
The moose likes Servlets and the fly likes Problem in print printer friendly version Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Problem in print printer friendly version" Watch "Problem in print printer friendly version" New topic

Problem in print printer friendly version

Conie Ooi
Ranch Hand

Joined: Jun 09, 2002
Posts: 31
Hi, I need to implement a print printer friendly version of the jsp pages. Some of the pages contain table. If my table has a lot of columns until I need to scroll to view the whole table, so how am I going to implement the printer friendly of the page?
Can you advice on how to implement this? Thanks a lot...
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15951

Because web browsers and printing systems vary so much, you can't really make a consistent printed output that way. If you want the report to look right regardless of who's printing it, you should create it in PDF form.
There are 2 major paths to do this.
1. Use a PDF-creation utility such as gnujpdf
(http://sourceforge.net/projects/gnujpdf/) or one of its commercial equivalents.
2. Use the "FOP" XML-formatted print facility (http://xml.apache.org/fop/index.html).

Customer surveys are for companies who didn't pay proper attention to begin with.
I agree. Here's the link: http://aspose.com/file-tools
subject: Problem in print printer friendly version
Similar Threads
XYZWS JAXP Study Guide missing DOM section
Printer friendly version
Print Friendly presentation with servlets or JSP
print function
Java printer classes