Jump to content

Printing php


claro

Recommended Posts

You can use this.  If you only want to print certain elements you can use styling for printing.  You can view everything but will only print certain things.  Neither are part of PHP

 

<form><input type="button" value=" Print this page "
onclick="window.print();return false;" /></form>

Link to comment
https://forums.phpfreaks.com/topic/249583-printing-php/#findComment-1281478
Share on other sites

Ok, I got It. What if I want to view first before printing, I'm talking about the print preview? thanks for your response ..

I dont think you can use javascript or a good way to call a browser's print preview feature. Instead you can pop up a new window to display your tables and use media type screen, print in the stylesheet you include in this window.

Link to comment
https://forums.phpfreaks.com/topic/249583-printing-php/#findComment-1281481
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.