|
Subject:
|
print out on a paper
|
|
Posted By:
|
hosefo81
|
Post Date:
|
2/11/2004 4:45:42 AM
|
i would like to print a php page on a paper. I want the page to be printed exactly like what is on the screen. The page has textbox, table, buttons and etc. Is it possible? Can someone please show me how to code?
|
|
Reply By:
|
nikolai
|
Reply Date:
|
2/11/2004 12:53:27 PM
|
If you're viewing a web page generated by PHP, your browser should be able to print it properly. You might have problems if the width of the web page is wider than your paper. In that case, try setting your paper to "landscape" orientation instead of "portrait".
Take care,
Nik http://www.bigaction.org/
|
|
Reply By:
|
richard.york
|
Reply Date:
|
2/11/2004 2:28:08 PM
|
You can also use CSS to explicitly tell the browser how the printed page should look..
<style type='text/css' media='print'>
/* normal CSS definitions altered for print */
</style> <style type='text/css' media='screen'>
/* CSS definitions for the screen */
</style>
Use the print preview feature to see changes made to the print style sheet.
: ) Rich
::::::::::::::::::::::::::::::::: Smiling Souls http://www.smilingsouls.net :::::::::::::::::::::::::::::::::
|
|
Reply By:
|
nikolai
|
Reply Date:
|
2/11/2004 3:10:09 PM
|
Careful though -- I don't think a lot of browsers fully support the CSS print directives...
Take care,
Nik http://www.bigaction.org/
|
|
Reply By:
|
richard.york
|
Reply Date:
|
2/11/2004 3:58:56 PM
|
Well the older browsers perhaps, I've used it with IE 6, NS 7 and Opera 7, with no troubles.. haven't tested on anything older so I couldn't say.
My DHTML book says support began in NS 6 and IE 4.
Browsers which aren't able to interpret it probably don't have very good CSS support anyway.
: ) Rich
::::::::::::::::::::::::::::::::: Smiling Souls http://www.smilingsouls.net :::::::::::::::::::::::::::::::::
|