Home All Groups Group Topic Archive Search About

Print version use CSS or similar ?

Author
20 Apr 2006 3:22 PM
JDP@Work
I've seen info regarding using CSS to control browser verses printer output,
however I'm not sure I'm on the right track.

The goal is to have a printable version w/out having to code a duplicate page
that is printer friendly.

1. I don't get how to use the CSS method, perhaps I havent' read enough.

2. I'd like to add scroll bars to my panel that my table resides in, however I'd
like the resulting <div> tag to not to have scrollbars and down & dirty print
all rows in the table.

Basically I want to enable a scrollable table and still print all the content.

3. Since most of the examples I've seen do not involve .Net; does anyone have a
link to making a printer friendly version of a page in .Net.

TIA

JeffP....

Author
20 Apr 2006 9:21 PM
agapeton
This really has nothign to do with .NET.

I think you want something lke this...

@media print {
     div#myId {
     overflow: auto;
     }
}

The overflow css keyword does that stuff...
Author
20 Apr 2006 9:53 PM
JDP@Work
Please foregive me, but this is exactly what I've seen and the reason I posted
and requested examples.

In .Net there are places to put things, like javascript in literals, html in the
aspx page and in my world VB.Net in the code behind, yes it's still 1.1 for my
clients and myself and elements in the CSS.

So where does this snipit go?


TIA

JeffP....


<agape***@gmail.com> wrote in message
Show quoteHide quote
news:1145568064.193928.263860@e56g2000cwe.googlegroups.com...
> This really has nothign to do with .NET.
>
> I think you want something lke this...
>
> @media print {
>      div#myId {
>      overflow: auto;
>      }
> }
>
> The overflow css keyword does that stuff...
>