env:
O/S 2000 sp4
vfp7 sp1
on report designer,
1.data grouping is set, new page when group change
2.fields on group footer band is set "Stretch with overflow"
If fields stretch with overflow on group footer and it overflow to next page, it affect the result of field on page footer on current group and next group.
Steps to Reproduce:
Create table by following code:
create table table1 (f1 c(10),f2 m)
insert into table1 (f1,f2) value ('A','')
insert into table1 (f1,f2) value ('B',repl('X'+ chr
(13),200)) && overflow to next page
insert into table1 (f1,f2) value ('C','')
create report testbug
add data grouping expression "f1" :
set "Reset page number to 1 for each group"
add report variables "vf1" with Expression : f1
on page header band :
add a field Expression : f1
on detail band :
add a field Expression : f1
on "group footer : f1" band :
add a field Expression : f2, set "Stretch with overflow".
on page footer band :
add a field Expression : f1
Save report
do a command :
report form testbug preview
Or
report form testbug to print
result :
Assume Group A is printed on page1,
Group B is printed on page2 and 3 because for group footer overflow to next page,
Group C is printed on page4
on page footer band when f1 group B :
field "f1" display C && incorrent
field "vf1" display B && corrent
on page footer band when f1 group C :
field "f1" display C && correct
field "vf1" display B && incorrent
Is it a bug?
thanks.
Ray