Hi
I am rendering the following Javascript to a print button control in my application:
[CODE=javascript]
<script language=javasc ript>
var WinPrint = window.open('', '','letf=0,top= 0,width=1000,he ight=1000,resiz able=yes,toolba r=0,scrollbars= 0,status=0');
WinPrint.docume nt.write("This is a test");
WinPrint.docume nt.close();
WinPrint.focus( );
WinPrint.print( );
WinPrint.close( );
</script>
[/CODE]
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.
I am rendering the following Javascript to a print button control in my application:
[CODE=javascript]
<script language=javasc ript>
var WinPrint = window.open('', '','letf=0,top= 0,width=1000,he ight=1000,resiz able=yes,toolba r=0,scrollbars= 0,status=0');
WinPrint.docume nt.write("This is a test");
WinPrint.docume nt.close();
WinPrint.focus( );
WinPrint.print( );
WinPrint.close( );
</script>
[/CODE]
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.
Comment