Re: [PHP] Printing Web Page

2008-11-13 Thread Patrick Moloney
Thanks to all. That worked well. I just had to insert the stylesheet 
link on each of a couple dozen pages, but it worked.
My pages were a little complicated and took some work - and could 
probably use more but I'll deal with that as I go.


Some samples I found were very simple print stylesheets, others were 
longer but written from scratch. I started with my previous screen 
stylesheet and modified it. That seemed to work pretty well.


Patrick

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Printing Web Page

2008-11-08 Thread Ashley Sheridan
On Sat, 2008-11-08 at 08:01 -0500, Patrick Moloney wrote:
 Ashley Sheridan wrote:
  On Thu, 2008-11-06 at 22:35 +0100, Frank Arensmeier wrote:
  6 nov 2008 kl. 21.21 skrev Patrick Moloney:
 
  I'd like to enable my users to print individual web pages from their  
  browser. If they simply select the browser print button they don't  
  get all the text that is displayed in a scrolling text area.
  The web page is static html and css, in a php file.
 
  This might be a good starting point.
 
  http://www.alistapart.com/articles/printyourway
 
  //frank
 
 
  link href=print.css media=print type=text/css rel=stylesheet/
  
  Then set out your CSS in print.css to lay out the page without scrolling
  areas.
  
  
  Ash
  www.ashleysheridan.co.uk
  
 
 Thanks all! So, to state the obvious (to you all) the solution is to 
 address my original question through CSS. That sounds good.
 Ashly, your post is helpful. What is the next step, to display the page 
 on screen using the new stylesheet, then rely on the user to use the 
 browsers print button?
 
 Thanks,
 Patrick
 
 
Easier than that even, the browser automatically selects this stylesheet
when the user presses the print button (or you issue a window.print()
from javascript) because it recognises the media=print attribute. You
can use the media type for other browsers too, like audio, print,
screen, projectors, etc.


Ash
www.ashleysheridan.co.uk


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Printing Web Page

2008-11-08 Thread Patrick Moloney

Ashley Sheridan wrote:

On Thu, 2008-11-06 at 22:35 +0100, Frank Arensmeier wrote:

6 nov 2008 kl. 21.21 skrev Patrick Moloney:

I'd like to enable my users to print individual web pages from their  
browser. If they simply select the browser print button they don't  
get all the text that is displayed in a scrolling text area.

The web page is static html and css, in a php file.


This might be a good starting point.

http://www.alistapart.com/articles/printyourway

//frank



link href=print.css media=print type=text/css rel=stylesheet/

Then set out your CSS in print.css to lay out the page without scrolling
areas.


Ash
www.ashleysheridan.co.uk



Thanks all! So, to state the obvious (to you all) the solution is to 
address my original question through CSS. That sounds good.
Ashly, your post is helpful. What is the next step, to display the page 
on screen using the new stylesheet, then rely on the user to use the 
browsers print button?


Thanks,
Patrick


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Printing Web Page

2008-11-06 Thread Patrick Moloney
I'd like to enable my users to print individual web pages from their 
browser. If they simply select the browser print button they don't get 
all the text that is displayed in a scrolling text area.

The web page is static html and css, in a php file.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Printing Web Page

2008-11-06 Thread Jay Blanchard
[snip]
I'd like to enable my users to print individual web pages from their 
browser. If they simply select the browser print button they don't get 
all the text that is displayed in a scrolling text area.
The web page is static html and css, in a php file.
[/snip]

There are some very good articles on setting up a CSS for printing web
pages if you search Google.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Printing Web Page

2008-11-06 Thread Frank Arensmeier

6 nov 2008 kl. 21.21 skrev Patrick Moloney:

I'd like to enable my users to print individual web pages from their  
browser. If they simply select the browser print button they don't  
get all the text that is displayed in a scrolling text area.

The web page is static html and css, in a php file.



This might be a good starting point.

http://www.alistapart.com/articles/printyourway

//frank


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Printing Web Page

2008-11-06 Thread Ashley Sheridan
On Thu, 2008-11-06 at 22:35 +0100, Frank Arensmeier wrote:
 6 nov 2008 kl. 21.21 skrev Patrick Moloney:
 
  I'd like to enable my users to print individual web pages from their  
  browser. If they simply select the browser print button they don't  
  get all the text that is displayed in a scrolling text area.
  The web page is static html and css, in a php file.
 
 
 This might be a good starting point.
 
 http://www.alistapart.com/articles/printyourway
 
 //frank
 
 
link href=print.css media=print type=text/css rel=stylesheet/

Then set out your CSS in print.css to lay out the page without scrolling
areas.


Ash
www.ashleysheridan.co.uk


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php