Jump to content

print in php


Recommended Posts

One way you can do it is with CSS. Add a new stylesheet to your webpage that is only used for printing (make sure you give it the media type of print), eg

<link rel="stylesheet"   type="text/css"   media="print" href="print.css" />

What will happen now is your web browser will apply the styles within print.css and override the css defined in your main stylesheet.

 

Or in PHP just create a new file which only outputs the bare minimum data needed for printing.

Link to comment
https://forums.phpfreaks.com/topic/235849-print-in-php/#findComment-1212393
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.