<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>
贴出来看一下好吗?