【问题标题】:Microsoft JScript runtime error: Unable to get value of the property 'get_isLoading': object is null or undefinedMicrosoft JScript 运行时错误:无法获取属性“get_isLoading”的值:对象为空或未定义
【发布时间】:2013-07-13 10:58:39
【问题描述】:

我正在尝试使用下面的代码打印我的报告查看器报告,我收到一个错误,即 Microsoft JScript 运行时错误:无法获取属性“get_isLoading”的值:对象为空或未定义。有什么想法吗?

<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>

【问题讨论】:

  • $find("ReportViewer1"); - 找不到元素
  • 如果我的reportviewer 被称为ReportViewer1,我可以将其更改为什么?

标签: javascript asp.net vb.net ssrs-2008


【解决方案1】:

ctl00_ContentPlaceHolder1_ReportViewer1 是控件的名称

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多