aspose file tools*
The moose likes Servlets and the fly likes User Reporting Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "User Reporting" Watch "User Reporting" New topic
Author

User Reporting

Darren Edwards
Ranch Hand

Joined: Aug 17, 2005
Posts: 69
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

Joined: Mar 06, 2001
Posts: 13459

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

Joined: Aug 17, 2005
Posts: 69
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
 
subject: User Reporting