Click to See Complete Forum and Search --> : Printing HTML
andres_giraldo
04-19-2005, 11:59 AM
Hi!
I would like to know how can I print a data report correctly using page breaks and considering font-sizes, page margins and sizes, and printing from Internet Explorer / Netscape...
There's a method to do that?
I've heard about style pages, but I really didn't understand how to do that... there's another way?
Thanks for your help!
Ultimater
04-19-2005, 02:55 PM
They are called Cascading Sheets(CSS).
There are two major kinds of Cascading Sheets, those that are used to Style-up the webpage on the user's screen and those that are only used to style-up the page when it prints using a printer.
Since you want to style-up the page when it prints, you will need to include an extra property in the CSS, media="print".
Here's an extra of how to hide a layer when it prints:
<style type="text/css" media="print">
.myLayerId{display: none;}
</style>
andres_giraldo
04-20-2005, 10:53 AM
Hi Ultimater, Thanks for answer me!
Yes, I said before I've heard about Style Pages or Cascading Sheets to do that, but I don't know how to implement a break page, and where would I do that... I mean, how can I control the page size, keeping in mind the variable font-size of the many data groups on a report...
You know where can I find a sample CSS to look at, where this would be controlled???
Thanks!
They are called Cascading Sheets(CSS).
There are two major kinds of Cascading Sheets, those that are used to Style-up the webpage on the user's screen and those that are only used to style-up the page when it prints using a printer.
Since you want to style-up the page when it prints, you will need to include an extra property in the CSS, media="print".
Here's an extra of how to hide a layer when it prints:
<style type="text/css" media="print">
.myLayerId{display: none;}
</style>
Ultimater
04-20-2005, 10:58 AM
I don't do much CSS fancy programming and this is not the right thread to discuss it either. Goto the CSS thread.