Search this site!

Return to the CSB Support home page
Printer friendly web page

This document describes a method for creating a "printer friendly" web page.  Information was extracted from an Internet Magazine web article.
Background:  

Have you ever been to a web site that had a link to a "printer friendly" version of an article or story?  

Often, what such a web site has done is to create an additional web page containing just the text of the article - void of any links, advertisement, banners or other graphics.  By doing this, the article prints faster, and is formatted to fit the width of the printed page.

But, these web sites usually have a staff of web programmers, and the pages to be printed are often associated with articles from a magazine.
Solution:

For those of us using CuteSITE Builder or Trellix Web, I would suspect that the requirement to print a "printer friendly" page would be more suited for allowing a visitor to print out an invoice or order form.

Dynamic Drive and Internet Magazine have both posted similar solutions that will work very well for us.  

What they suggest is to make use of a special format of the <LINK> statement that will modify what happens with your browser when a visitor clicks on the PRINT button.  

Actually, this is pretty cool in that you could also use this to prevent people from printing the actual contents of a particular web page.
How to do it:

1. First, create a separate text readable (.txt) file containing the information you wish to be printed when the visitor clicks on the print button.

Or better yet, convert your document into a PDF format for free - and create your own .pdf document!

2. Insert the following code in an INSERT > HTML CODE function on your page:

<LINK REL="alternate" MEDIA="print" HREF="^GEMDIR/myfile.txt">

Or, if inserting a PDF document,use the following slightly expanded version of the LINK command

<LINK REL= "alternative" MEDIA="print" HREF= "^GEMDIR/myfile.pdf" TYPE= "application/postscript">

3. Then click on the 'Files for this Component' button, and locate and insert the appropriate file (myfile.txt or myfile.pdf in the examples above)

4. Save, publish and test!


Try it yourself! -- Click Here to display a new page,
and then click on the browser PRINT button