File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

User Reporting

 
Darren Edwards
Ranch Hand
Posts: 69
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Although not servlet specific I face the question of report pagination specifically in HTML content. If you have a servlet generating long (multiple pages when printed) reports how do you process this before passing it to the user?

The easy option is to dump it all as HTML and let the user click print from the browser - taking your chances on where pages are split.

The more difficult options generate binary formats like pdf directly, but are much more code and time intensive to produce.

Anyone have any feedback on different approaches/experiences such as sdocbook (or XML in general) which can be post-processed into binary formats?
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
there are formatting options you can add, but I've only seen them used but never used them and my feeling was they are IE specific. You could create a Word doc with page breaks, save as HTML and then see what happens?
 
Darren Edwards
Ranch Hand
Posts: 69
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by David O'Meara:
there are formatting options you can add, but I've only seen them used but never used them and my feeling was they are IE specific. You could create a Word doc with page breaks, save as HTML and then see what happens?



Interesting to see the page-break-before:always tag, but it makes no difference in Safari/Firefox (didn't test in IE).
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic