473,799 Members | 2,666 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

printable version

Is there HTML code available to provide a printable version of a web
page?
Without the browser graphics, that is.
--
Regards, Harold A Ralston
Racine, Wisconsin, USA
Jul 23 '05 #1
2 6287
Harold R <lu********@yah oo.com> wrote:
Is there HTML code available to provide a printable version of a web
page?
You can use CSS to provide an print stylesheet but the only HTML
component to that is the link:
<link rel="stylesheet " href="print.css " media="print">

That provides an alternative presentation for the printed page. No
need to create duplicate HTML pages.
Without the browser graphics, that is.


Sorry, no idea what you mean. You can hide graphics that are in the
page by using display: none; in your print stylesheet, but I've no
idea what you mean by _browser_ graphics.

Steve

Jul 23 '05 #2

"Steve Pugh" <st***@pugh.net > wrote in message
news:mf******** *************** *********@4ax.c om...
Harold R <lu********@yah oo.com> wrote:
Is there HTML code available to provide a printable version of a web
page?


You can use CSS to provide an print stylesheet but the only HTML
component to that is the link:
<link rel="stylesheet " href="print.css " media="print">

That provides an alternative presentation for the printed page. No
need to create duplicate HTML pages.
Without the browser graphics, that is.


Sorry, no idea what you mean. You can hide graphics that are in the
page by using display: none; in your print stylesheet, but I've no
idea what you mean by _browser_ graphics.

Steve

Thank you VERY MUCH for this reply, Steve! I was actually on the newsgroup
checking replies to another question and this thread caught my eye. I found
your remarks about separate CSS files for printed versions of pages to be a
revelation: I hadn't known that anything along this line was possible!

I checked in my favourite HTML/CSS reference (<>) , then threw together a
very simple demonstration of the technique you describe and was blown away.
I think I'm going to find that *very* useful in the future!

Thanks again!

Rhino
Jul 23 '05 #3

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

Similar topics

3
2493
by: Pascal | last post by:
Hello, What's the best way to delete or replace no-printable characters in a string. i.e.: "\x08toto\x00titi" -> "tototiti" or " toto titi"
2
5478
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 characters: CheckPrintable(self,message): printablemessage = ""
2
1421
by: sandygarg | last post by:
I liked the python tutorial ( http://www.python.org/doc/current/tut/tut.html ) very much. Now i want to print this tutorial. Where do i get a printable version of the document?
17
6192
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 Acknowledgements etc... The application itself has a largely fluid layout, but for these printed documents I need to make them fixed, such that the printed layout is consistent. That is, they need to look consistent on an A4 page. Its worth...
10
2522
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 Acknowledgements etc... The application itself has a largely fluid layout, but for these printed documents I need to make them fixed, such that the printed layout is consistent. That is, they need to look consistent on an A4 page. Its worth...
2
4203
by: SunRise | last post by:
Hi I am creating a C Program , to extract only-Printable-characters from a file ( any type of file) and display them. OS: Windows-XP Ple help me to fix the Errors & Warnings and explain how to use Command-Line Arguments inside C program.
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 like "Show Printable Version". Other than taking out all of the gui stuff and making a simple clean page for printing, is there any other design considerations for making a page good for printing? I'm using frames and all of my content shows in...
7
34643
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 better. Like a \something that does it all? Return Regex.Replace(oStr, "", "").Trim
2
3167
by: gnawz | last post by:
Hi, Anyone can help me on how to create a printable version of MySQL data to be printed from PDF of Excel but moat preferably on the webpage? <? require_once '../../functions.php'; $sql = "SELECT * FROM fragrancestock WHERE Quantity = '0'"; $rowsPerPage = 10; $result = dbQuery(getPagingQuery($sql, $rowsPerPage)); $pagingLink = getPagingLink($sql, $rowsPerPage); ?> <form action="index.php?view=add" method="post" name="frmList"...
0
9689
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9550
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10495
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10269
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9085
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6811
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5469
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5597
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3764
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.