How to Print Specific Number of Records in Detail BandID: Q114248 2.5x 2.6x 3.00 | 2.5x 2.6x | 2.5x 2.60a kbprint
The information in this article applies to:
SUMMARYBy using the Report Writer in FoxPro, you can limit the number of records that print in the Detail band when the report has a data grouping.
MORE INFORMATION
FoxPro 2.x ExampleThe steps below demonstrate how to print only the first ten records from each state in the CUSTOMER database, in a report that is grouped on the STATE field:
10. From the Report menu, choose Print Preview to see your example.
Visual FoxPro Example1. In the Command window, issue the following command:
2. From the Window menu, choose View Window.
3. Select the Orders table and click Properties. 4. From the Index Order list box, choose CUST_ID, then choose OK. 5. In the Command window, type:
6. From the Report menu, choose Quick Report, and then choose OK.
7. From the Report menu, choose Data Grouping. 8. Type "Cust_id" (without the quotation marks) under the Group Expression 9. From the Report menu, choose Variables.
10. Create a variable named Count. Assign it an initial value of 0 and a 11. For each field in the Detail band, set up the expression as follows:
12. If you are using FoxPro for Windows, FoxPro for Macintosh or Visual
13. Add or move the CUST_ID field to the body of the state data grouping
14. From the Report menu, choose Print Preview to see your example.
Additional reference words: VFoxWin 3.00 FoxMac FoxDos FoxWin 2.00 2.50 2.50a 2.50b 2.50c 2.60 2.60a set exact precise RWriter KBCategory: kbprint KBSubcategory: FxtoolRwriter
|
Last Reviewed: May 1, 1996 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |