Problem solve Get help with specific problems with your technologies, process and projects.

Leaving buttons out of a Web printout

I have a data grid on a Web form and a print button. On clicking the print button, the Web form must be printed along with the data grid. However, I would like the buttons to be left out from the printout. How do I do it?
I generally place a "Display Printable Version" button on the form and provide the user with a version of the page where the buttons are not visible. I suspect it would be possible to write some JavaScript that would hide the buttons before calling the browsers print method.

Dig Deeper on Win Development Resources

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.