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

Re: Incorrect page footer information problem by Cindy

Cindy
Mon Feb 02 13:36:30 CST 2004

In news: A8D7C2B8-7A97-4837-A695-630045C2294C@microsoft.com,
Ray <anonymous@discussions.microsoft.com> wrote:
>.......
> 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?

Hi Ray,

I see this in VFP8 also. I've turned your bug report in to my contacts at
Microsoft. Thanks for posting this!


--
Cindy Winegarden MCSD, Microsoft Visual FoxPro MVP
cindy.winegarden@mvps.org www.cindywinegarden.com