Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PrintPage - but not the current page 1

Status
Not open for further replies.

FletchUK

Programmer
Nov 6, 2001
16
0
0
GB
I have PrintPage button on one of my web pages which prints out the tables exactly as they appear on screen complete with borders etc. The problem is that although the borders look good on screen (they are white) they don't look so good when printed out (they are black). If I set up a new page without borders is possible to print this new page by clicking the Print button on the original page? If so, what changes do I need to make to the coding of the button (do I need to add in the URL of the new page for example?) The other option is to provide a link to the new "printer friendly" page which could have it's own Print button but I'd like to avoid this if possible.

The current coding for the button is:
<input type=&quot;button&quot; value=&quot;Print League Tables&quot; onClick=&quot;printPage()&quot;>
 
No need for all that malarkey.

Simply set up a separate stylesheet with the media attribute set to &quot;print&quot;.
 
Hi Dwarfthrower

Sorry for the delay in replying to your post. At the time I didn't fully understand stylesheets but I have just spent the last couple of weeks teaching myself CSS and I'm now wondering how I ever managed without it.

Thanks for pointing me in the right direction.

FletchUK
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top