function openWord(filename){
try {
var wrd=new ActiveXObject("word.Application");
wrd.visible=true;
wrd.Documents.Open(filename);
wrd.Application.Printout();
wrd=null;
}
catch(e){}
}
调用此函数打印word文档<input name="Submit2" type="button" class="btn_grey" onClick=openWord('E:\\r.doc')
打开并打印了word文档,请问如何实现让此文档打印完成后自动关闭。谢谢!
try {
var wrd=new ActiveXObject("word.Application");
wrd.visible=true;
wrd.Documents.Open(filename);
wrd.Application.Printout();
wrd=null;
}
catch(e){}
}
调用此函数打印word文档<input name="Submit2" type="button" class="btn_grey" onClick=openWord('E:\\r.doc')
打开并打印了word文档,请问如何实现让此文档打印完成后自动关闭。谢谢!
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货