473,503 Members | 2,167 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Printable Content

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

Jan 20 '08 #1
3 966
On Jan 19, 11:22 pm, "Jonathan Wood" <jw...@softcircuits.comwrote:
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.
Jan 20 '08 #2
Hello Jonathan,

As was noted, you need to use CSS media content.
You can find sample there http://aspnetresources.com/articles/..._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
JWI noticed that some sites will display content and have a Print link
JWthat will display the same content but without all the unneeded
JWgraphics and colors.
JW>
JWAnyone here ever implemented this? I know you can do something like
JWthis with CSS but I've got all sorts of navigation, etc. stuff on
JWthe page that shouldn't be included. I also realize I can create a
JWsecond page from scratch without the unneeded stuff. Just wondering
JWif anyone knew any tricks.
JW>
JWThanks.
JW>
Jan 20 '08 #3
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" <jw***@softcircuits.comwrote in message
news:uk**************@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

Jan 20 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
5444
by: Daniel Alexandre | last post by:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi there, I'm using the following method in my program to check whether a message received is printable or not and to strip the non-printable...
7
1955
by: Albretch | last post by:
Hi, I was wondering what would be the way to have the same content rendered in a different way; say from a page with navigation bars presenting the text in two columns to a "printable" one...
17
6120
by: CJM | last post by:
....When I say 'form' I'm talking about a conventional paper version, as opposed to a <form>. I'm building a web-based application which needs to be able to create Invoices/Advice Notes/Order...
10
2496
by: CJM | last post by:
....When I say 'form' I'm talking about a conventional paper version, as opposed to a <form>. I'm building a web-based application which needs to be able to create Invoices/Advice Notes/Order...
5
346
by: moondaddy | last post by:
I'm going to use an aspx page to display an invoice that customers can print from. Sometimes when I go to a site and navigate to a page I want to print, they will have a button that says something...
0
278
by: Lucas Tam | last post by:
Is there a way to change System.Web.Mail's Content Transfer Encoding? It's currently using Quoted Printable... However, a piece of software on the receiving end does not support Quoted Printable. ...
2
1563
by: marss | last post by:
I have a long page that contains few separate information blocks. When I print the page by means of window.print(), the content is automatically divided by pages. I look through and find I can...
6
4862
by: Sandman | last post by:
Maybe it's me who is misunderstanding this, but isn't this string in quoted printable: "OLED & =?ISO-8859-1?Q?br=E4nsleceller?=" It's found in the Subject: header in a usenet message (i.e. not...
7
34598
by: active | last post by:
I want to remove all non-printable characters - including nulls. I could extend the following by adding as many printable characters as I can think of. But I wonder if there isn't something...
4
1363
by: Claudia Fong | last post by:
Hi, I have a windows application and I want to simulate the send email function. Is it possible? How? Ca someone tell me? Cheers!
0
7205
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7093
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7287
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7011
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5596
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5023
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4689
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3170
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1521
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.