当前位置: 技术问答>java相关
用jsp如何调用windows的页面设置功能和打印功能!
来源: 互联网 发布时间:2015-07-16
本文导语: 各位高手!用jsp如何调用windows的页面设置功能和打印功能! | 实际上要用js去调用window的print; function window.onload() { factory.printing.header = "" factory.printing.footer = "" factory.printing.leftM...
各位高手!用jsp如何调用windows的页面设置功能和打印功能!
|
实际上要用js去调用window的print;
function window.onload() {
factory.printing.header = ""
factory.printing.footer = ""
factory.printing.leftMargin = 0.75
factory.printing.topMargin = 1.5
factory.printing.rightMargin = 0.75
factory.printing.bottomMargin = 1.5
}
if (confirm("ssss")
alert("yes")
else
alert("no")
function window.onload() {
factory.printing.header = ""
factory.printing.footer = ""
factory.printing.leftMargin = 0.75
factory.printing.topMargin = 1.5
factory.printing.rightMargin = 0.75
factory.printing.bottomMargin = 1.5
}
if (confirm("ssss")
alert("yes")
else
alert("no")