Connecting Tech Pros Worldwide Forums | Help | Site Map

Printer Friendly Page

weetat.yeo@gmail.com
Guest
 
Posts: n/a
#1: Aug 4 '06
Hi all ,

I have a print button in PHP page which using javascript
window.print() to print web page.
However , when user click "print" , the print preview display that the
page cut-off and alignment is out.

Read on regarding the matter , and found that is not the issue of PHP .
Some users recommend to me to use CSS and HTML to create printer
friendly page.
However my page is extension is in php , can i use CSS and HTML to
create printer friendly page?

Anybody have any sample how to do it is much appreciated ? Thanks


Randy Webb
Guest
 
Posts: n/a
#2: Aug 4 '06

re: Printer Friendly Page


weetat.yeo@gmail.com said the following on 8/4/2006 4:02 AM:
Quote:
Hi all ,
>
I have a print button in PHP page which using javascript
window.print() to print web page.
However , when user click "print" , the print preview display that the
page cut-off and alignment is out.
Read on regarding the matter , and found that is not the issue of PHP .
Some users recommend to me to use CSS and HTML to create printer
friendly page.
However my page is extension is in php , can i use CSS and HTML to
create printer friendly page?
Yes, you can use CSS. Ask in news:comp.infosystems.www.authoring.stylesheets

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
David Dorward
Guest
 
Posts: n/a
#3: Aug 4 '06

re: Printer Friendly Page


weetat.yeo@gmail.com wrote:
Quote:
I have a print button in PHP page which using javascript
window.print() to print web page.
Browsers come with multiple methods to start printing built in. There is no
need to add another one (which only works for your site).
Quote:
Read on regarding the matter , and found that is not the issue of PHP .
Some users recommend to me to use CSS and HTML to create printer
friendly page.
Yes, a print media style sheet is the way to go about things.
Quote:
However my page is extension is in php , can i use CSS and HTML to
create printer friendly page?
File extensions are not relevant on the WWW, what matters is the
Content-type HTTP header. PHP can control that.

--
David Dorward <http://blog.dorward.me.uk/ <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Closed Thread