📄 detail.aspx
字号:
<%@ Page Language="C#"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<HEAD>
<TITLE>Web报表(B/S报表)演示, 打印支票,向报表传递参数数据</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312">
<script language="javascript" type="text/javascript">
// <!CDATA[
//在网页初始加载时设置参数并启动报表的运行显示
function window_onload()
{
document.getElementById("txtProductID").value = <%=Request.QueryString["ProductID"]%>;
btnRefresh_onclick();
}
//打印预览报表
function btnPreview_onclick()
{
ReportViewer.Report.PrintPreview(true);
}
//根据数据过滤参数重新显示报表
function btnRefresh_onclick()
{
ReportViewer.Stop();
var ProductID = document.getElementById("txtProductID").value;
var DataURL = "xmlDetail.aspx?ProductID=" + ProductID;
ReportViewer.DataURL = DataURL;
ReportViewer.Start();
}
// ]]>
</script>
<style type="text/css">
.style1
{
width: 260px;
}
</style>
</HEAD>
<BODY onload="window_onload()" bgcolor="buttonface">
<table border="0" width="691" height="19">
<tr>
<td height="15" class="style1">合同编号:<INPUT id="txtProductID" type="text" size="3" value="1" name="txtProductID" readonly>
<INPUT id="btnPreview" onclick="return btnPreview_onclick()" type="button" value="打印预览"
name="btnPreview"></td>
<td width="21" height="15"><font size="2"></font></td>
<td height="15" width="187">
</font></td>
</tr>
</table>
<p>
<OBJECT id="ReportViewer" codeBase="griectl.cab#Version=5,0,8,518" height="503" width="100%"
classid="CLSID:E060AFE6-5EFF-4830-B7F0-093ECC08EF37" VIEWASTEXT>
<PARAM NAME="ReportURL" VALUE="../grf/detail.grf">
<PARAM NAME="DataURL" VALUE="">
<PARAM NAME="AutoRun" VALUE="false">
<PARAM NAME="BorderStyle" VALUE=1>
<PARAM name="SerialNo" VALUE="9B028VEE06LCI794PXQ9E2DL31VDS5R0258TSU54TAYQ5BT6S9SEUV4KWPS5">
<PARAM name="UserName" VALUE="锐浪报表插件本地测试">
</OBJECT>
</p>
</BODY>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -