var printurl="http://localhost:8075/webroot/decision/view/report";var names = ;var paths = ;var singlepaths = ; var url = "ReportServer?reportlets=(";var $span = $('.fr-checkbox-checkon'); //获取选中的复选框 var $tds = $("td").has($span); //定义选中复选框的单元格 var $trs = $("tr").has($tds); var p=; for(var i=0; i<$trs.length;i++){ var name = $("td:eq(2)",$($trs)).html(); //获取选中的C4单元格的值 var a = $("td:eq(3)",$($trs)).html(); var b = $("td:eq(4)",$($trs)).html(); // names.push(name); //将选中的值放到数组中 var cptpath ="doc/Advanced/PrintReport/"+"test"+ name+".cpt"; var urlstring = "{reportlet:" +"'"+FR.cjkEncode(cptpath)+"'"+",p1:"+"'"+name+"'"+",p2:"+"'"+a+"'"+",p3:"+"'"+b+"'"+"}"; debugger; paths.push(urlstring); debugger;} if(paths.length>0){var rpaths=paths.join(","); var reportlets=""; var config = {url : printurl, isPopUp : false, data : {reportlets:reportlets} }; } debugger; FR.doURLPDFPrint(config);