HTMLViewer and Print

I have a HTMLViewer element that displays a page that has a button that allows me to print the page using JavaScript (onclick=“window.print();return false;”) . However it doesn’t work on the HTMLViewer. Any ideas? Is there a way to allow the Print dialog to shows up only when the input button is pressed?

I know I can print the contents of the HTMLViewer using: HTMLViewer1.print in a DocumentComplete event, or by creating a push button and the active method. However is not what I need.