Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/37.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/elixir/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
打印多个SSRS报告asp.net MVC和javascript_Javascript_Asp.net_Model View Controller - Fatal编程技术网

打印多个SSRS报告asp.net MVC和javascript

打印多个SSRS报告asp.net MVC和javascript,javascript,asp.net,model-view-controller,Javascript,Asp.net,Model View Controller,我已经使用报表生成器创建了SSRS 2报表。我需要打印在一个按钮在剑道网格按钮点击多个报告 我在客户端ui中尝试了以下代码 function printTest(e) { e.preventDefault(); currentResultModel = JSON.parse(JSON.stringify(this.dataItem($(e.currentTarget).closest("tr")))); var report

我已经使用报表生成器创建了SSRS 2报表。我需要打印在一个按钮在剑道网格按钮点击多个报告

我在客户端ui中尝试了以下代码

  function printTest(e) {
        e.preventDefault();
        currentResultModel = JSON.parse(JSON.stringify(this.dataItem($(e.currentTarget).closest("tr"))));
        var reportList = currentResultModel.ReportList
            

        for (var i = 0; i < reportList.length; i++) {
            var oWindow = window.open(reportList[i], "_blank", 'PopUp' + i + '…');
            oWindow.print();
            oWindow.close();
        }
    }
功能打印测试(e){
e、 预防默认值();
currentResultModel=JSON.parse(JSON.stringify(this.dataItem($(e.currentTarget.closest(“tr”)));
var reportList=currentResultModel.reportList
对于(var i=0;i
我得到的报告清单如下

报告列表:[,…] 0: "http://reportServerName/ReportServer?/reports/FiltrationSystemTest/&rs:Command=Render&rs:Format=PDF&rc:PageWidth=8.3in&rc:MarginLeft=0.05in&rc:MarginTop=0.07in&rc:MarginRight=0.05in&rc:MarginBottom=0.07in&testId=75“
1: "http://reportServerName/ReportServer?/reports/EquipmentWaterTestRequest/&rs:Command=Render&rs:Format=PDF&rc:PageWidth=8.3in&rc:MarginLeft=0.05in&rc:MarginTop=0.07in&rc:MarginRight=0.05in&rc:MarginBottom=0.07in&testId=75&type=type1“
2: "http://reportServerName/ReportServer?/reports/EquipmentWaterTestRequest/&rs:Command=Render&rs:Format=PDF&rc:PageWidth=8.3in&rc:MarginLeft=0.05in&rc:MarginTop=0.07in&rc:MarginRight=0.05in&rc:MarginBottom=0.07in&testId=75&type=type2

显然它不起作用了…这段代码正在打开空白窗口