Hi all,
I tried to use Javascript "window.print()" to print the loaded page in the embedded browser on Windows. The sample page is as below:
<html>
<head>
<title>Test Javascript window.print()</title>
<script>
function printpage()
{ alert("Run Javascript window.print();"); window.print(); }
</script>
</head>
<body>
<p>Test page for test Javascript "window.print()".</p>
<p><input type=button value="Print" OnClick="printpage()"</p> </body>
</html>
This script piece "window.print()" works if I load this page into a standalone Mozilla 1.7 (unzipped from a .zip package or installed from a .exe package), and works if I load it into an embedding mozilla windows (mfcembed.exe) if Mozilla is unzipped from a .zip package.
But it doesn't work in the embedding mozilla window if Mozilla is installed from a .exe package: it hangs with the "Preparing" dialog.
Could anybody give any hints to investigate? Thanks !
-George. _______________________________________________ mozilla-embedding mailing list [email protected] http://mail.mozilla.org/listinfo/mozilla-embedding
