求助
不知道为什么,我本地运行报表都能正常显示,并且打印。
但是发布到服务器后,个别报表就出现了 如图所示的问题。
注:只是个别报表 行: 26
错误: “OpenedReport”未定义 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!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 id="Head1"><title>
</title>
<script type="text/javascript">
window.onload = function () {
function setheight() {
var divview = document.getElementById('divview');
divview.style.height = document.documentElement.clientHeight + 'px';
divview.style.width = document.documentElement.clientWidth + 'px';
}
setheight();
onresize = setheight;
}
</script>
<script id="lib.jquery-1.7.2.min.js" type="text/javascript" src="Command=ArResource;ScriptId=lib.jquery-1.7.2.min.js.ar9"></script><script id="lib.json2.js" type="text/javascript" src="Command=ArResource;ScriptId=lib.json2.js.ar9"></script><script id="resources-9.3.4300.0.js" type="text/javascript" src="Command=ArResource;ScriptId=resources-9.3.4300.0.js.ar9"></script><script id="RSU-9.3.4300.0.js" type="text/javascript" src="Command=ArResource;ScriptId=RSU-9.3.4300.0.js.ar9"></script><script id="arscript_24" type="text/javascript">function arDocumentLoader_WebViewer1_controlDiv() {var controlDiv = document.getElementById('WebViewer1_controlDiv');if (! controlDiv) {setTimeout(arDocumentLoader_WebViewer1_controlDiv, 1000);return;} new OpenedReport('314ab9cd-3c2c-4aa1-9b88-4a2ecd899219', '/ActiveReports.ReportService.asmx', true).RunReport().GetExportedReportLink(RS_ReportBinaryKind.Pdf, {"WebViewer":"true"}).Process(function(result) {var uri = result.ReportLink.Uri;var iframe = document.createElement('iframe');iframe.style['width'] = '100%';iframe.style['height'] = '100%';iframe.style['border-style'] = 'none';iframe.src = uri;iframe.id = 'WebViewer1_controlDiv_iframe';iframe.scrolling = 'no';iframe.frameBorder = 0;while (controlDiv.firstChild) {controlDiv.removeChild(controlDiv.firstChild);} controlDiv.appendChild(iframe);},function(error) {while (controlDiv.firstChild) {controlDiv.removeChild(controlDiv.firstChild);} alert(RS_DescribeError(error, false));});};arDocumentLoader_WebViewer1_controlDiv();</script></head>
<body>
<form method="post" action="cxys_Report.aspx?reportname=%u76ee%u5f55(%u4e00%u822c)&amp;detectid=204&amp;overrunid=93&amp;isnullreport=false" id="form1" style="height:100%; width:100%;">
<div class="aspNetHidden">
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUKMTg1Nzc5NTQ3MGQYAQUKV2ViVmlld2VyMQ8y3QIAAQAAAP////8BAAAAAAAAAAwCAAAAZEdyYXBlQ2l0eS5BY3RpdmVSZXBvcnRzLldlYi52OSwgVmVyc2lvbj05LjMuNDMwMC4wLCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWNjNDk2Nzc3N2M0OWEzZmYFAQAAAC9HcmFwZUNpdHkuQWN0aXZlUmVwb3J0cy5XZWIuTW9kZWxzLlJldFZhbHVlQmFzZQIAAAAFRXJyb3IFVG9rZW4EAyhHcmFwZUNpdHkuQWN0aXZlUmVwb3J0cy5XZWIuTW9kZWxzLkVycm9yAgAAAAtTeXN0ZW0uR3VpZAIAAAAKBP3///8LU3lzdGVtLkd1aWQLAAAAAl9hAl9iAl9jAl9kAl9lAl9mAl9nAl9oAl9pAl9qAl9rAAAAAAAAAAAAAAAIBwcCAgICAgICAs25SjEsPKFKm4hKLs2JkhkLZMpB14YytpAYaVdAyLewR8OGCgJA63I3gnacEz94sReL" />
</div>
<div align="center"id="divview">
<div id="WebViewer1" style="border-style:None;height:100%;width:860px;">
<div id="WebViewer1_controlDiv" style="height:100%;width:100%;">Rendering...</div>
</div>
</div>
</form>
</body>
</html> <script id="lib.jquery-1.7.2.min.js" type="text/javascript" src="Command=ArResource;ScriptId=lib.jquery-1.7.2.min.js.ar9"></script><script id="lib.json2.js" type="text/javascript" src="Command=ArResource;ScriptId=lib.json2.js.ar9"></script><script id="resources-9.3.4300.0.js" type="text/javascript" src="Command=ArResource;ScriptId=resources-9.3.4300.0.js.ar9"></script><script id="RSU-9.3.4300.0.js" type="text/javascript" src="Command=ArResource;ScriptId=RSU-9.3.4300.0.js.ar9"></script><script id="arscript_25" type="text/javascript">function arDocumentLoader_WebViewer1_controlDiv() {var controlDiv = document.getElementById('WebViewer1_controlDiv');if (! controlDiv) {setTimeout(arDocumentLoader_WebViewer1_controlDiv, 1000);return;} new OpenedReport('45d19e46-8272-4911-80df-68a202169c46', '/ActiveReports.ReportService.asmx', true).RunReport().GetExportedReportLink(RS_ReportBinaryKind.Pdf, {"WebViewer":"true"}).Process(function(result) {var uri = result.ReportLink.Uri;var iframe = document.createElement('iframe');iframe.style['width'] = '100%';iframe.style['height'] = '100%';iframe.style['border-style'] = 'none';iframe.src = uri;iframe.id = 'WebViewer1_controlDiv_iframe';iframe.scrolling = 'no';iframe.frameBorder = 0;while (controlDiv.firstChild) {controlDiv.removeChild(controlDiv.firstChild);} controlDiv.appendChild(iframe);},function(error) {while (controlDiv.firstChild) {controlDiv.removeChild(controlDiv.firstChild);} alert(RS_DescribeError(error, false));});};arDocumentLoader_WebViewer1_controlDiv();</script> 这个script 中的“OpenedReport”未定义 您好,
根据目前的信息,初步判断是报表模板导致的问题。
需要您将一个能够重现这跟问题的例子程序,上传到论坛。
我们调试问题,跟您DEBUG的方式是一样的。需要重现问题,然后一步一步跟。您描述的这个问题,我们需要重现后,才能确定具体的问题。 我本地是好的
那我是把有问题的这个报表发给你? 您好,
非常抱歉,让您久等了。下午开会去了,回来比较晚。
这个问题,我使用您的报表,在本地部署了,能够正常显示,没有能够重现这个问题。
我的机器是win8.1 64位 IIS版本是8.
所有,判断是环境的问题。
首先,您可以参考下http://blog.gcpowertools.com.cn/post/2015/04/07/ActiveReports_Deploy_-IIS.aspx 您好,
我将我部署成功的例子程序上传到论坛。您可以将这个部署,看是否能够解决问题。
我将引用的DLL都删除了,要不然太大。
页:
[1]