如何控制嵌套报表中子报表的显示行数
展开全部
//i为需要显示的行数,ldw_child为需要控制的子报表
int i
datawindowchild ldw_child
dw_1.settransobject(sqlca)
dw_1.retrieve()
datastore lds_child
lds_child = create datastore
lds_child.dataobject = 'dataobject'
lds_child.settransobject(sqlca)
lds_child.retrieve()
dw_1.getchild('datawindowchild',ldw_child)
for i = 1 to 3
ldw_child.reset()
ldw_child.settransobject(sqlca)
lds_child.rowscopy(1,3, Primary!, ldw_child, ldw_child.rowcount() + 1, Primary!)
next
destroy lds_child
int i
datawindowchild ldw_child
dw_1.settransobject(sqlca)
dw_1.retrieve()
datastore lds_child
lds_child = create datastore
lds_child.dataobject = 'dataobject'
lds_child.settransobject(sqlca)
lds_child.retrieve()
dw_1.getchild('datawindowchild',ldw_child)
for i = 1 to 3
ldw_child.reset()
ldw_child.settransobject(sqlca)
lds_child.rowscopy(1,3, Primary!, ldw_child, ldw_child.rowcount() + 1, Primary!)
next
destroy lds_child
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询