469,628 Members | 1,109 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,628 developers. It's quick & easy.

Printer Friendly Page

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

Aug 4 '06 #1
2 1730
we********@gmail.com said the following on 8/4/2006 4:02 AM:
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/
Aug 4 '06 #2
we********@gmail.com wrote:
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).
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.
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
Aug 4 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by ST | last post: by
1 post views Thread by John Klucker | last post: by
2 posts views Thread by Ron | last post: by
2 posts views Thread by Sandy | last post: by
1 post views Thread by dinoo | last post: by
5 posts views Thread by weetat.yeo | last post: by
15 posts views Thread by Prisoner at War | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.