Printable Content

Printable Content

am 20.01.2008 05:22:21 von Jonathan Wood

I noticed that some sites will display content and have a Print link that
will display the same content but without all the unneeded graphics and
colors.

Anyone here ever implemented this? I know you can do something like this
with CSS but I've got all sorts of navigation, etc. stuff on the page that
shouldn't be included. I also realize I can create a second page from
scratch without the unneeded stuff. Just wondering if anyone knew any
tricks.

Thanks.

--
Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com

Re: Printable Content

am 20.01.2008 06:57:32 von gnewsgroup

On Jan 19, 11:22 pm, "Jonathan Wood" wrote:
> I noticed that some sites will display content and have a Print link that
> will display the same content but without all the unneeded graphics and
> colors.
>
> Anyone here ever implemented this? I know you can do something like this
> with CSS but I've got all sorts of navigation, etc. stuff on the page that
> shouldn't be included. I also realize I can create a second page from
> scratch without the unneeded stuff. Just wondering if anyone knew any
> tricks.
>
> Thanks.
>
> --
> Jonathan Wood
> SoftCircuits Programminghttp://www.softcircuits.com

Maybe you can use the CSS media property. Google "css media" for more
information.

Re: Printable Content

am 20.01.2008 09:23:02 von nemtsev

Hello Jonathan,

As was noted, you need to use CSS media content.
You can find sample there http://aspnetresources.com/articles/printer_friendly.aspx

---
WBR,
Michael Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo


JW> I noticed that some sites will display content and have a Print link
JW> that will display the same content but without all the unneeded
JW> graphics and colors.
JW>
JW> Anyone here ever implemented this? I know you can do something like
JW> this with CSS but I've got all sorts of navigation, etc. stuff on
JW> the page that shouldn't be included. I also realize I can create a
JW> second page from scratch without the unneeded stuff. Just wondering
JW> if anyone knew any tricks.
JW>
JW> Thanks.
JW>

Re: Printable Content

am 20.01.2008 10:07:15 von Eliyahu Goldin

One of the ways is to handle javascript events onbeforeprint and
onafterprint where you can hide/show parts of your page with javascript as
you wish.

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net


"Jonathan Wood" wrote in message
news:ukMDPwxWIHA.4476@TK2MSFTNGP06.phx.gbl...
>I noticed that some sites will display content and have a Print link that
>will display the same content but without all the unneeded graphics and
>colors.
>
> Anyone here ever implemented this? I know you can do something like this
> with CSS but I've got all sorts of navigation, etc. stuff on the page that
> shouldn't be included. I also realize I can create a second page from
> scratch without the unneeded stuff. Just wondering if anyone knew any
> tricks.
>
> Thanks.
>
> --
> Jonathan Wood
> SoftCircuits Programming
> http://www.softcircuits.com
>