Ok, two things as both of you don't seem to have read the rules of Daniweb.
Secondly to Wesley.cheek.96, you should start a new thread if you have a question as to avoid people getting confused, and please include some more detail.
I am creating a web based managment system. I want to facilitate the user with print button which will open the print dialogue box. But I want that I should set the header and footer according to my choice. So that user just press print button on web page then print button on print dialogue box.
Here is the sample print put page. I dont want the text "Patient Record | New Patient | Doctor Record | Medicine Record" at the top. Submit button and Logout button at the end. And I want to set the header and footer by default through html or php.
Thanks and Regrads
This means that you could be printing a very colourful, and thus expensive document which contains things you don't want as you've discovered.
To resolve this issue, you can do one of two things. When you click the button which shall print it you can either swap your CSS for one which removes the colours, and hides certain elements or you can copy the relevant data (such as the main article) onto a seperate HTML page and print that. Once you've sent it to the printer you are going to want to then redirect the browser back to the original page so that the user shall be none the wiser.