关注主题
那个js调用fr根本看不懂,我只想要选那个打印那一页怎么做啊
//根据判断那个sheet页,进行打印,我这边用参数框进行选择sheet页,可使用loadSheetByName方法获取sheet名称//根据你的厂家修改,参照https://help.fanruan.com/finereport/doc-view-2386.html//wen属性-工具栏-自定义按钮-js自定义事件var aaa = _g().getParameterContainer().getWidgetByName("comboBox0").getValue();if (aaa === '3752918041776528') {var REPORT_URL = '${servletURL}?op=export&format=excel&sheets=[0]&sessionID=' + bb;window.location = encodeURI(REPORT_URL);//_g().exportReportToExcel('sheet1');}else{var REPORT_URL = '${servletURL}?op=export&format=excel&sheets=[1]&sessionID=' + bb;window.location = encodeURI(REPORT_URL);//_g().exportReportToExcel('sheet2');}
赞 举报
本版积分规则 发表回复 回帖后跳转到最后一页