Microsoft KB Archive/135617

= BUG: Group Header Information Prints Incorrectly =

Article ID: 135617

Article Last Modified on 5/7/2003

-

APPLIES TO


 * Microsoft Visual FoxPro 3.0 Standard Edition
 * Microsoft Visual FoxPro 3.0b Standard Edition
 * Microsoft Visual FoxPro 5.0 Standard Edition
 * Microsoft Visual FoxPro 5.0a

-



This article was previously published under Q135617



SYMPTOMS
Group header information prints incorrectly when all of the following are true:
 * The group is defined to start on a new page.
 * The group header is defined to print on every page.
 * The group footer is the only band that prints on the last page of the group.

In this case, the group header information printed on the last page of the group is actually the header information for the next record. In Visual FoxPro version 5.0, the group header does not print at all in this case.



WORKAROUND
This workaround does not apply to Visual FoxPro version 5.0. There does not appear to be a workaround to make the group footer print in the case described above.  Add a field to the Group Header. Set the field expression to a variable (for example, "repx"). Add a field to the Group Footer. Set "Print Only When Expression is True" to .F. and "Field Expression" to a UDF (for example, "letsgo").  In the UDF type the following: repx=AGROUPS(i) &&agroups is array that holds group header info. IF i  Create a program for calling the report. Type the following into the prg: Select from ; Group by into array agroups i=2 



STATUS
Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

Additional query words: 5.00 3.00 3.00b

Keywords: kbbug kbprint KB135617

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.