用webBrowser进行iframe打印
printFrame1为存放打印页面的iframe,其width和height均为0
在printFrame1的页面代码中加入以下JS代码进行打印。
top.printFrame1.focus();
//top.printFrame1.wb.ExecWB(6,6);
document.execCommand("print");
如果使用ExecWB(6,6)会将在打印时将ifra...
2010-04-21 14:36:33 ·
362 阅读 ·
0 评论