Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 6 of 6
  1. #1
    Senior Member
    Join Date
    Apr 2003
    Location
    Las Vegas
    Posts
    231
    Member #
    1169
    I have my page currently setup with a link to print, but when you print the page it gets cut off if you don't have shrink to fit selected. Is there a way to make it do this automaticaly with the link or other method? I already have my pages built as php with some includes but it would be a pain to edit them individualy to make them printer friendly.

    Ive also read about the CSS method of printing only what you specify, but its to late for me to go in and edit my pages to not print/print what I want.

    Thanks for any replies

  2.  

  3. #2
    Senior Member seanmiller's Avatar
    Join Date
    Sep 2003
    Location
    Glastonbury, UK
    Posts
    868
    Member #
    3263
    Liked
    1 times
    Are you using CSS at present?

    If so, making the print render differently would not actually be that different... it may just be as simple as defining the fontsize smaller in the print-orientated stylesheet.

    Let's say, for instance, that you have a stylesheet called style.css -- within it you can create two sets of definitions...

    Code:
    @media print {
       ...all your print-orientated style definitions here...
    }
    @media screen {
       ...all your screen-orientated style definitions here...
    }
    Sean

  4. #3
    Senior Member
    Join Date
    Apr 2003
    Location
    Las Vegas
    Posts
    231
    Member #
    1169
    Seems like a great idea, but I have images that would restrict this from happening width wise. I'm looking for something so that when they click the link for print it will automaticaly fit the page to print

  5. #4
    Senior Member
    Join Date
    May 2005
    Location
    Essex, United Kingdom
    Posts
    200
    Member #
    10131
    you could use <link rel="alternate" media="print" href="print_version.doc"> this would print an alternate document when you print the page, therefore you would not have to edit the page at all except for adding that.

  6. #5
    Senior Member
    Join Date
    Apr 2003
    Location
    Las Vegas
    Posts
    231
    Member #
    1169
    Didn't seem to work, am I placing this code in the head? Seems like a great idea though

  7. #6
    Senior Member
    Join Date
    Apr 2003
    Location
    Las Vegas
    Posts
    231
    Member #
    1169
    For anyone who is interested this script works very well, after some digging I found what works really well

    http://www.mikenew.net/printfriendly.php

    Give it a try


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Search tags for this page

printer auto shrink

Click on a term to search for related topics.
All times are GMT -6. The time now is 06:57 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com