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?
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
posted
0
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).