• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problem in print printer friendly version

 
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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...
 
Saloon Keeper
Posts: 27862
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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).
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic