我用activereport做的报表 在IE浏览器中能正常显示
在chrome上不能显示
我查了很久 应该问题是出在加载上问题,我是这样写的 请大家指点下是否还有别的加载方式。
前台:
<body language="javascript" onload="return window_onload()">
<form id="Form1" method="post" runat="server">
<object style="Z-INDEX: 0" id="arv" codebase="arview2.cab" classid="clsid:8569D715-FF88-44BA-8D1D-AD3E59543DDE" width="100%" height="100%" VIEWASTEXT>
<param name="_ExtentX" value="23892" />
<param name="_ExtentY" value="16880" />
</object>
</form>
</body>
后台:
ClientScriptManager CSM = Page.ClientScript;
string ScriptName = "clientScript";
if (!CSM.IsClientScriptBlockRegistered(ScriptName))
{
StringBuilder strScript = new StringBuilder();
strScript.Append("<script id='clientEventHandlersJS' language='javascript'>");
strScript.Append("function window_onload() {");
strScript.Append("document.getElementById('arv').datapath ='ReportOutput/" + userName + Request.QueryString["RepName"] + ".rdf';");
strScript.Append("}");
strScript.Append("</script>");
CSM.RegisterStartupScript(this.GetType(), ScriptName, strScript.ToString());
} |
|