<OBJECT classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2" height="0" id="RptCom" width="0">
</OBJECT>
<script language="javascript">
<!--
//-----------------------------------------------------------------------
function btnPrint_onclick() //打印按钮
{
try
{
document.all("tbButton").style.display = "none";
document.all.RptCom.ExecWB(6,6)
document.all("tbButton").style.display = "";
}
catch(e)
{
alert(e.description);
return;
}
}
//-----------------------------------------------------------------------
function PrintView() //打印预览
{
try
{
document.all("tbButton").style.display = "none";
document.all.RptCom.ExecWB(7,1);
document.all("tbButton").style.display = "";
}
catch(e)
{
alert(e.description)
return;
}
}
//-----------------------------------------------------------------------
function PrintSetup() //打印设置
{
try
{
document.all.RptCom.ExecWB(8,1)
}
catch(e)
{
alert(e.description);
return;
}
}
//-----------------------------------------------------------------------
function PageSetup() //页面设置
{
try
{
var iLine;
iLine = window.prompt("请输入您需要的页面行数",35);
if (iLine.toLowerCase() == "null" || iLine == "")
{
return false;
}
if (isNaN(iLine) == true)
{
alert("对不起,页面的行数只能设置为数字!");
return false;
}
else
{
if (parseInt(iLine) == 0)
{
alert("对不起,页面的行数不能设置为0!");
return false;
}
if (parseInt(iLine) == 1)
{
alert("对不起,请将页面行数设置大一些!");
return false;
}
}
}
catch(e)
{
return;
}
FormSubmit(iLine);
}
-->
</script>
</OBJECT>
<script language="javascript">
<!--
//-----------------------------------------------------------------------
function btnPrint_onclick() //打印按钮
{
try
{
document.all("tbButton").style.display = "none";
document.all.RptCom.ExecWB(6,6)
document.all("tbButton").style.display = "";
}
catch(e)
{
alert(e.description);
return;
}
}
//-----------------------------------------------------------------------
function PrintView() //打印预览
{
try
{
document.all("tbButton").style.display = "none";
document.all.RptCom.ExecWB(7,1);
document.all("tbButton").style.display = "";
}
catch(e)
{
alert(e.description)
return;
}
}
//-----------------------------------------------------------------------
function PrintSetup() //打印设置
{
try
{
document.all.RptCom.ExecWB(8,1)
}
catch(e)
{
alert(e.description);
return;
}
}
//-----------------------------------------------------------------------
function PageSetup() //页面设置
{
try
{
var iLine;
iLine = window.prompt("请输入您需要的页面行数",35);
if (iLine.toLowerCase() == "null" || iLine == "")
{
return false;
}
if (isNaN(iLine) == true)
{
alert("对不起,页面的行数只能设置为数字!");
return false;
}
else
{
if (parseInt(iLine) == 0)
{
alert("对不起,页面的行数不能设置为0!");
return false;
}
if (parseInt(iLine) == 1)
{
alert("对不起,请将页面行数设置大一些!");
return false;
}
}
}
catch(e)
{
return;
}
FormSubmit(iLine);
}
-->
</script>
解决方案 »
- 关于JavaScript 急。。
- js转换数字操作
- 怎么读一个页面里的字符呀?
- 點擊圖片,文字竟然跑出在textarea區外~暈,怎麼會這樣><
- 想让一个按钮在页面上永远水平居中(页面上有水平滚动条),要怎么弄啊?问题解决,马上结贴
- help: 新手不知道这段javascript代码是何意思?
- 如何取得一个table元素内的某个元素的属性或值?
- 如何使打开的页面位于其父页面的中央。
- 如何一打开页面,就让光标闪烁在<input>框中?
- Activex(DTPicer)控件注册,在javaScript程序注册,来者有分,在线等待,
- 如何给一个URL进行加密操作,不让客户端看到所传递参数及其值?
- 哪位大侠帮我看一看,为什么点击按钮后alert出来的总是24,并且滚层的高度不理想
贴出来看一下好吗?