print php generated report
I simply want to print php generated report. My monitor
displays exactly what I want but what must I do to get that
If you don't like what your browser does to the report (File,Print) you will most likely have to generate the report as a PDF. Try FPDF - takes a little learning but works great and is very versatile. Simple to install, allows for any font you want to upload and use and displays images as well.
Or add a @print media type to your CSS, and tweak that to get the desired print output.
"Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
~ Terry Pratchett in Nation
You can provide a button which will print the page when clicked. Incidentally, depending on the browser configuration, it may also print the button.
<input type="button" onClick="window.print()" value="Print The Report"/>
or can try with the below link.
Hope this helps.
Users Browsing this Thread
There are currently 2 users browsing this thread. (0 members and 2 guests)