By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,864 Members | 1,265 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,864 IT Pros & Developers. It's quick & easy.

Printer Friendly Page

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a
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.