Never try to be a hard-worker. Be a smart-worker.
My Blog
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
Originally posted by Tim Holloway:
There are 2 options here, at least.
One is to print the displayed page, the other is to create a formatted report.
CSS has the wonderful capability that you can define styles that only take effect in certain environments, such as on a printed page. Quite a few sites take advantage of that these days. Some of them include the print styles as part of the basic page display. In this case, for example, you do things like specify a style that suppresses the page framing (menu sidebars, for example). By doing that, you eliminate the need for a separate "print this page" function - and a trip back to the server for a print-friendly page layout.
For things with more precise layouts, it's sometimes better to generate a true ready-for-print report, such as a PDF. There are a number of ways to do this in Java, either using PDF-creation libraries or XSL-FO (for example, Apache FOP).
Never try to be a hard-worker. Be a smart-worker.
My Blog
Never try to be a hard-worker. Be a smart-worker.
My Blog
Never try to be a hard-worker. Be a smart-worker.
My Blog
Don't get me started about those stupid light bulbs. |