View Full Version : Printing only the text

Jul 3rd, 2002, 03:42 AM
can this be done

i have a resume on the net on my web site and i want to add a "Print This resume" link to it , so when someone what a print out of the resume they can have it and not the whole template and all ( just the text in the resume )

any help is greatful

Jul 3rd, 2002, 04:43 AM
/me thinks it can be just a done® however.../me seems to remember it 'needing' to be told to print yourrr version of the resume on just a separate® page without your 'graphics/template'

twas just a posted® how to do it in the ol' invisible frame ifin' you have your site in frames???
n' ifin' you dont??? /me is pretty sure you can just a mess® with this code n' get it to print just a lternate® page...:O))) goodluck...

Gavry posted 11-07-99 11:29 PM ET (US)
On My computer this works fine. Printing the hidden frame. (NS 4.5)

********** luvya.html ********
<TITLE>why not?</TITLE>
<BODY BGCOLOR="#000000">
<FORM><INPUT TYPE="BUTTON" NAME="PRINT" VALUE="print the thing" onClick="parent.hideme.printpage()"></FORM>

Jul 3rd, 2002, 11:12 AM
With CSS:

<style type="text/css" media="print">
P {font:normal 14px arial,serif;}
.otherSelector {display:none;}
#andAnotherOne {display:none;}
IMG {display:none;}
You can include all the selectors you don't want to be displayed in print with same definition :
IMG, .myTable, #foo, #foo:bar {display:none;}

Jul 3rd, 2002, 09:35 PM
i'm not useing CSS and the other thing didnt work either

i was woundering can this be done

have a .doc file uploaded with the same info on it and when some presses Print Text (http://) It print out the .doc file ??

any help is great full :)

Jul 4th, 2002, 02:22 PM
At work we have to do a similar thing, our reason was to make it black text on a white background and also to make the page thinner because some clients were gettin the edge cut off on a 100% width page.

We have a second copy of the page - we can do this easily since all of the content is dynamic but if you dont have too many pages it should not be a problem. The second page is our "print page" which is colored and laid out exactly as we want it for printing.

Now the idea is to link to the new page, ask it to print, then make it link back to your initial page. This will display the print page for about a second and then go back to your first page. (NOTE - You can avoid this by making it open in a new window placed off the page or in a 1pixel frame or just a mini window with only "printing page" text visible.)

Now, to the scripts required, quite simple really...

<script language=javascript>
function print_page(){

And make this part of the body tag:
<body OnLoad="print_page()">

And thats it. Hope that helps you out a bit.

May 22nd, 2003, 05:20 AM
Hi Candrias77 or anyone that can help me,

Would you know how I would be able to transfer the content of the first page to the seond page so that I would print the second page. Your idea was to have two pages...I am trying to avoid this becaouse if would take more time to retrieve data from the database etc. I need this for Netscape4...the code below is what I use for IE4+ and it works fine but not with NS4..

<script language="javascript">

function PageOnLoad() {
document.all.item('test1').innerHTML = window.opener.document.all.item('idBody').outerHTML;