southbeach
Programmer
I searched around the forum and came across this thread
I followed every suggestion but it is not working for me.
My objective:
I have written a PHP script which produces a nice looking page filled with content extracted from MySQL tables. I would like to send the rendered content to a printer.
Everything I've tried so far has resulted on printing the code not the rendered page.
For now, I am doing this
after rendering the page which in turn will open the printer dialog box.
I want to print the document and close it right off PHP.
Thank you all in advance for you assistance!
I followed every suggestion but it is not working for me.
My objective:
I have written a PHP script which produces a nice looking page filled with content extracted from MySQL tables. I would like to send the rendered content to a printer.
Everything I've tried so far has resulted on printing the code not the rendered page.
For now, I am doing this
Code:
<script type="text/javascript">
window.print();
</script>
I want to print the document and close it right off PHP.
Thank you all in advance for you assistance!