I am rendering the following Javascript to a print button control in my application:
Expand|Select|Wrap|Line Numbers
- <script language=javascript>
- var WinPrint = window.open('','','letf=0,top=0,width=1000,height=1000,resizable=yes,toolbar=0,scrollbars=0,status=0');
- WinPrint.document.write("This is a test");
- WinPrint.document.close();
- WinPrint.focus();
- WinPrint.print();
- WinPrint.close();
- </script>
In IE7 a new window opens and a print dialog box appears for me to set the printer and send the page off.
However in IE6 all I get is the data in the window - no print dialog.
There is obviously a compatibility issue here but I cannot find anything on the web.
Can someone help me please?
Thanks in advance.