微软JScript运行时错误:无法获取财产“get_isLoading'值:对象为null或undefined [英] Microsoft JScript runtime error: Unable to get value of the property 'get_isLoading': object is null or undefined
本文介绍了微软JScript运行时错误:无法获取财产“get_isLoading'值:对象为null或undefined的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想用下面的code到打印报告查看器报告,我得到一个错误,微软JScript运行时错误:无法获取财产get_isLoading'值:对象为null或未定义。任何想法?
< SCRIPT LANGUAGE =JavaScript的>
功能PrintReport(){
VAR viewerReference = $找到(ReportViewer1); 变种stillonLoadState = viewerReference.get_isLoading(); 如果(!stillonLoadState){
变种reportArea = viewerReference.get_reportAreaContentType();
如果(reportArea == Microsoft.Reporting.WebFormsClient.ReportAreaContent.ReportPage){
找到$(ReportViewer1)invokePrintDialog()。
}
}
}
< / SCRIPT>
解决方案
ctl00_ContentPlaceHolder1_ReportViewer1是控件的名称
I am trying to print my report viewer report using the code below and I am getting a error that Microsoft JScript runtime error: Unable to get value of the property 'get_isLoading': object is null or undefined. Any ideas?
<script language="javascript">
function PrintReport() {
var viewerReference = $find("ReportViewer1");
var stillonLoadState = viewerReference.get_isLoading();
if (!stillonLoadState) {
var reportArea = viewerReference.get_reportAreaContentType();
if (reportArea == Microsoft.Reporting.WebFormsClient.ReportAreaContent.ReportPage) {
$find("ReportViewer1").invokePrintDialog();
}
}
}
</script>
解决方案
ctl00_ContentPlaceHolder1_ReportViewer1 is the name of the control
这篇关于微软JScript运行时错误:无法获取财产“get_isLoading'值:对象为null或undefined的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文