PDA

View Full Version : About printstyle script



patrickb
02-26-2005, 12:08 PM
Script: Alternate document for printing
http://www.dynamicdrive.com/dynamicindex9/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)

mwinter
03-04-2005, 10:31 AM
Script: Alternate document for printing
http://www.dynamicdrive.com/dynamicindex9/printstyle.htmYou'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.


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

poohster
09-14-2005, 11:53 AM
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 :(

jscheuer1
09-14-2005, 05:49 PM
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.