改成
dim sum1 as double = val(DataTables("财务流水").compute("sum(收入)","[部门] = '" & s & "'"))dim sum2 as double = val(DataTables("财务流水").compute("sum(支出)","[部门] = '" & s & "'")).body.AddRow("汇总","","","",sum1,sum2)