动态创建计算域
这个是正常显示的。
这个是不正常的,两个计算域重合到一起了。
下面是我创建计算域的代码:
string ls_modify,ls_modify1,ls_modify2ls_modify=dw_4.modify("datawindow.summary.height=188 datawindow.summary.color='536870912' ") dw_4.modify('create compute(band=summary alignment="0" expression="sum(数量)"border="0" color="33554432" x="51500" y="32" height="76" width="1367" format="[GENERAL]" html.valueishtml="0" name=compute_1 visible="1" font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="536870912" )')ls_modify=dw_4.describe("数量_t.x")dw_4.modify("compute_1.x="+ls_modify)dw_4.modify('create compute(band=summary alignment="0" expression="sum(金额)"border="0" color="33554432" x="51790" y="32" height="76" width="1367" format="[GENERAL]" html.valueishtml="0" name=compute_2 visible="1" font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="536870912" )')ls_modify1=dw_4.describe("金额_t.x")dw_4.modify("compute_2.x="+ls_modify1)dw_4.modify('create compute(band=summary alignment="0" expression="合计"border="0" color="33554432" x="10" y="32" height="76" width="1367" format="[GENERAL]" html.valueishtml="0" name=compute_20 visible="1" font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="536870912" )')dw_4.modify("compute_20.x="+string(10))dw_4.object.compute_20.expression = "'"+'合计:'+"'"
dw_4.modify('create compute(band=summary alignment="0" expression="sum(数量)"border="0" color="33554432" x="' + dw_4.describe("数量_t.x") + '" y="32" height="76" width="' + dw_4.describe("数量_t.width") + '" format="[GENERAL]" html.valueishtml="0" name=compute_1 visible="1" font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="536870912" )')dw_4.modify('create compute(band=summary alignment="0" expression="sum(金额)"border="0" color="33554432" x="' + dw_4.describe("金额_t.x") + '" y="32" height="76" width="' + dw_4.describe("金额_t.width") + '" format="[GENERAL]" html.valueishtml="0" name=compute_2 visible="1" font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="536870912" )')dw_4.modify('create compute(band=summary alignment="0" expression="~'合计:~'"border="0" color="33554432" x="' + dw_4.describe("部门_t.x") + '" y="32" height="76" width="' + dw_4.describe("部门_t.width") + '" format="[GENERAL]" html.valueishtml="0" name=compute_20 visible="1" font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="536870912" )')