File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
JavaRanch » Java Forums » Java » Servlets
Bookmark "Problem in print printer friendly version" Watch "Problem in print printer friendly version" New topic
Author

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: 16246
    
  21

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.
 
Don't get me started about those stupid light bulbs.
 
subject: Problem in print printer friendly version