i made a PHP page that calculating bill of medical institute. i need to print the bill from this page. bt using window.print command it print whole page with buttons also.. bt i dont need no buttons.plz help me to print bill.. thnkuuu

Recommended Answers

Create a CSS for the media type print. That CSS will be used for printing, so you can hide all elements you don't want appearing on the page: http://www.w3schools.com/css/css_mediatypes.asp

Jump to Post

not marked solved
code sample

@media print { .dontprint {display:none;} }
<input type='submit' class='dontprint' value='send' />
Jump to Post

All 7 Replies

thnxxxxx

not marked solved
code sample

@media print { .dontprint {display:none;} }
<input type='submit' class='dontprint' value='send' />

Please help me how to hide table set of rows from print..??

Please help me how to hide table set of rows from print..??

read the prior posts <tr class='dontprint'> wiping your behind for you incurs extra charge

okkkk thnxxxx for alll

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.