Forum Moderators: open

Message Too Old, No Replies

windows.print

printer dialog and documents

         

Clays

5:42 pm on Feb 24, 2005 (gmt 0)



can i use window.print() function without choose printer by printer dialog? (using only default printer without questions).
Can i print a Word Document by a submit command in Javascript?
(es.
<script>
function_1()
{
window.print (documentname)
}
</script)
..........
< input type "submit" onclick=funcion_1() ....)
THANK YOU VERY MUCH

SpaceFrog

9:08 am on Feb 28, 2005 (gmt 0)

10+ Year Member



Only with IE ...

<HTML>
<HEAD>
<script id="clientEventHandlersJS" language="javascript">
function print_onclick(){
WebBrowser.ExecWB(6,6);
}
</script>
</HEAD>
<body>
<object id="WebBrowser" width="0" height="0" classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2" VIEWASTEXT></object>
Test d'impresssion<br>
<input type="button" value="Imprimer" id="btnPrint" onclick="return print_onclick()">
</body>
</HTML>

can also be done by opening popup with page to print inside