Hi Elmer,
Looks like this bug still exists in VFP7 and 8.
>Hi Elmer,
>
>If you zip up one of your reports with data to run it and email to me, I could test it in VFP7 and 8. Also, there is another workaround for such or similar problem in
Re: _Pageno Not Advancing Message #
610944.
>
>>I have several reports with a title band and a data grouping that is set to reset page number to 1 when group changes. On a report of this type, when the first data group spans more than 1 page the page number does not increment properly. The page numbers increment as follows: Title band 1,1,2,3,4,.... group change, 1,2,3,... group change, 1,2,3,4,... etc. I am using VFP 6 SP5.
>>
>>This only happens when you have a Title band and a data grouping set to reset page number to 1. If you remove the title band, or uncheck reset to page 1, the first page increments _pageno properly. I would say that this is a bug in the report writer for Visual FoxPro 6.0 Service Pack 5.
>>
>>The workaround that I have employed is to not use the title band at all and place objects that would normally be in the title band in the page header with a print when condition of iif(_pageno = 1,.t.,.f.) and remove line if blank. This seems to eliminate this problem and prints the "Title band" on the first page of each group when resetting page numbers to 1 on group change.
>>
>>Does anyone know if this has been fixed in VFP7 or 8?
--sb--