Results 1 to 4 of 4

Thread: About printstyle script

  1. #1
    Join Date
    Feb 2005
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question About printstyle script

    Script: Alternate document for printing
    http://www.dynamicdrive.com/dynamici...printstyle.htm

    Hello,
    I've got a little problem with the script above.
    I've just tried the example on your website , and it doesn't seem to work even with IE 4 +. Instead of printing me the grey text, it prints an blank page ...

    Can you tell me where's the problem ?

    Thanks

    PATRICK (France)

  2. #2
    Join Date
    Dec 2004
    Location
    UK
    Posts
    2,358
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by patrickb
    Script: Alternate document for printing
    http://www.dynamicdrive.com/dynamici...printstyle.htm
    You'll be far more successful if you use the link element to specify a print stylesheet: a variation of your standard stylesheet that does thinks like hiding navigation elements, altering colours, margins, etc.

    HTML Code:
    <link rel="stylesheet" media="print" type="text/css" href="[URL to stylesheet]">
    Good luck,
    Mike

  3. #3
    Join Date
    Apr 2005
    Location
    UK
    Posts
    36
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi i seem to have the same trouble in printing my alternative file which is a pdf file i tried the doc version and it seems to work fine, have tried adding the address to but still comes up blank
    Last edited by poohster; 09-14-2005 at 12:05 PM.

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Using a PDF file as an alternate page for printing presents too many problems for most operating systems and browsers. Better to stick with a DOC file or better yet, as mwinter suggests, just use the page itself and an alternate stylesheet. I'm not sure if you've grasped this last concept. Using alternative style allows the printer to only receive the parts of the page that you designate as visible and/or of a display mode other than none. It will also allow you to style the parts that you do want printed as you see fit, like with no background, in a different font or layout, etc.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

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