用的是帆软10这个版本的,报下图这个错
var location = this.options.location; //获取当前控件的位置
var cr = FR.cellStr2ColumnRow(location);
var col = cr.col; //列号
var ro = cr.row; //行号
var num4=contentPane.getCellValue(0, col+2, ro);
alert(num4)
这个不会报错,用填报预览!
这个方法是填报转有的,要填报预览才行哦
获取和设置单元格值接口
$("tr[tridx=行号]","div.content-container").children().eq(列号).html()
试试
https://help.fanruan.com/finereport/doc-view-1200.html
var a = $("tr[tridx=2]","div.content-container").children().eq(1).html();alert("第3行第2列值为:"+a);$("tr[tridx=2]","div.content-container").children().eq(1).html(1001);alert("第3行第2列值被修改为1001");