Microsoft KB Archive/109229

{| = PRB: Page Numbering in Report Not Reset to 1 =
 * width="100%"|

ID: Q109229

The information in this article applies to:


 * Microsoft FoxPro for MS-DOS, versions 2.0, 2.5x, 2.6x

SYMPTOMS
When you are printing or previewing a report with a data group and the New Page and Reset Page Number options are selected, the first group will start with _PAGENO = 1, but other groups will begin with _PAGENO = 2.

CAUSE
The report has a Bottom Margin setting greater than 0 (zero).

RESOLUTION
Set Bottom Margin to 0 and add the necessary lines to the Page Footer band. For example, if Bottom Margin is set to 2, reset it to 0 and add two lines to the Page Footer band.

Steps to Reproduce Behavior
1. Create a new report. 2. Open the CUSTOMER database and create an index on the STATE field. 3. Create a quick report. 4. Create a group based on the STATE field. 5. Select the New Page and Reset Page Number options. 6. Make sure the _PAGENO variable is displayed on the page. 7. From the Report menu, choose Page Layout. 8. Change Bottom Margin to 1, and then choose OK. 9. From the Report menu, choose Page Preview.

After the first group, all the other groups will begin with Page # 2.

Additional reference words: FoxDos 2.00 2.50 2.50a 2.50b 2.60 2.60a KBCategory: kbprg kbprb KBSubcategory:
 * }