Re: Beautiful HTML Invoice -> Prints like crap! I need somesuggestions!

From: Date: Thu, 09 Jun 2005 21:04:57 +0000
Subject: Re: Beautiful HTML Invoice -> Prints like crap! I need somesuggestions!
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-216764@lists.php.net to get a copy of this message
Most web browsers I know of don't print anything specified as background by default. I imagine that functionality extends to CSS-defined background colors and images. I doubt there's a way to change that preference other than setting it manually. If changing the print settings on your machine will not work for you, then you may consider PDF, though it certainly comes with it's own hassles. kgt Matt Babineau wrote:
Ok all - I've been playing with this print styl sheet thing. I can get the media="print" to behave correctly, but I cannot get table background colors set. I want to print the table bg colors and background images. I was hoping this was possible with CSS2. Does anyone have any input on this? I build some diagrams using html and graphics which are on the invoice, and I use bgcolor on my tables to show the separator lines in the line item section with the prices and such. I don't know how to proceed best, or if I am heading down a dead end with this. Anyone have any more input on this? Everything I have read so far has been very helpful and I thank you for that. Matt Babineau Criticalcode w: http://www.criticalcode.com p: 858.733.0160 e: matt@criticalcode.com -----Original Message----- From: Marcus Bointon [mailto:marcus@synchromedia.co.uk] Sent: Thursday, June 09, 2005 5:02 AM To: PHP General Subject: Re: [PHP] Beautiful HTML Invoice -> Prints like crap! I need somesuggestions! On 7 Jun 2005, at 23:46, Chris Martin wrote:
Is a simple CSS print stylesheet out of the question? If the site is marked up properly, this should be trivial, and would be much easier/more efficient.
CSS is definitely the way to go. Here are some good articles: http://www.alistapart.com/articles/printyourway/ http://www.alistapart.com/articles/goingtoprint/ Marcus -- Marcus Bointon Synchromedia Limited: Putting you in the picture marcus@synchromedia.co.uk | http://www.synchromedia.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.general (#216764) next »