Ask the Expert

Printing a page from a button

I am new to ASP.NET. Currently, I have a print button on the page and once someone clicks on the button, I want the page to be printed at my printer. Someone advised me to write a VB.NET application that uses a listener to solve this problem? Can it be done? Are there other ways to do this?
If you want to print a page on the browser, just use window.print() from JavaScript.

This was first published in July 2004