/    Sign up×
Community /Pin to ProfileBookmark

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!

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@UltimaterApr 19.2005 — 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, [color=royalblue]media="print"[/color].

Here's an extra of how to hide a layer when it prints:
[code=html]
<style type="text/css" media="print">
.myLayerId{display: none;}
</style>
[/code]
Copy linkTweet thisAlerts:
@andres_giraldoauthorApr 20.2005 — 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, [color=royalblue]media="print"[/color].

Here's an extra of how to hide a layer when it prints:
[code=html]
<style type="text/css" media="print">
.myLayerId{display: none;}
</style>
[/code]
[/QUOTE]
Copy linkTweet thisAlerts:
@UltimaterApr 20.2005 — I don't do much CSS fancy programming and this is not the right thread to discuss it either. Goto the CSS thread.
×

Success!

Help @andres_giraldo spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.20,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...