参考一下这个
JS隐藏sheet页-https://help.fanruan.com/finereport/doc-view-1740.html
web属性加载结束事件(填报或分析模式)
获取数据集数据量,然后判断隐藏对应sheet页
setTimeout(function(){
var a = FR.remoteEvaluate('=count(value("ds1",1))');//获取数据集ds1第一列数据条数
//alert(a);
if(a<5){ //如果小于5条数据,隐藏sheet2
$('li[title="sheet2"]').hide();
}
},100)
----------------------------------------------
JS调用FR打印方法--https://help.fanruan.com/finereport/doc-view-1071.html
自定义打印按钮-https://help.fanruan.com/finereport/doc-view-5028.html