FIX: Reprint Group Header Problem with Two Data Groupings (147574)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 3.0
- Microsoft Visual FoxPro for Windows 3.0b
- Microsoft Visual FoxPro for Windows 5.0
- Microsoft Visual FoxPro for Macintosh 3.0b
This article was previously published under Q147574 SYMPTOMS
If you create a report with two or more data groupings with the "Reprint
Group Header on Each Page" check box selected for all data groupings, the
groupings will print in incorrect order on the first page and on subsequent
pages when a new outer grouping starts on a new page.
WORKAROUND
NOTE: For this workaround to work, each new outer grouping must start on a
new page.
Follow the steps in the "Steps to Reproduce Problem" section of this
article, and then make the following changes to the report:
- In the Data Grouping dialog box, select the shipper_id group, and select
the "Start Each Group on a New Page" check box.
- Move all fields from Group Header 1 to the Page Header (you may need to
enlarge the Page Header band), and shrink the Group Header 1 band height
to 0.
- Create a report Variable, and give it the following settings:
Name - grpcount
Value to Store - grpcount + 1
Initial Value - 0
Calculate - Sum
Reset - shipper_id - Select all the fields in Group Header 2. Copy them, and then paste them
into the Page Header. On each of these new fields in the Page Header,
choose Print When, and in the "Print Only When Expression Is True" text
box, enter this expression:
grpcount = 0
Select the "Remove Line If Blank" check box.
- On all the fields in Group Header 2 choose Print When, and in the "Print
Only When Expression is True" text box, enter this expression
grpcount > 0
Select the "Remove Line If Blank" check box.
STATUS
Microsoft has confirmed this to be a problem in the Microsoft products
listed at the beginning of this article. This problem has been fixed in
Visual FoxPro 5.0a.
REFERENCES
For more information about the technique used in this article, please see
the following article in the Microsoft Knowledge Base:
94343 Obtaining Number of Data Groups in .FRX Without Using UDF
Modification Type: | Major | Last Reviewed: | 12/3/2003 |
---|
Keywords: | kbBug kbfix kbvfp500aFIX KB147574 |
---|
|