步骤:
1、在报表格式末尾添加Text组件,设置项选择HTML和Dynamic Text)
2、脚本代码:
<script>
self.moveTo(622,722);
self.resizeTo(1,1);
//Web.ExecWB(6,1)
document.execCommand('print','true','true');
window.opener="anyone";
window.close();
</script>
3、调用报表并直接打印:(输出形式为output)
window.open(path + '/output?__report=/report/oms/report.rptdesign&orderId=' + orderId);