Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
New page on report
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00561166
Message ID:
00561274
Views:
25
>I have a report that has a group. Sometimes I will need to print each group on a new page and sometimes not. Is there a way to handle this other than haveing two frx's?
>
>Thanks
>
>Pat

Create a cursor to hold the data that drives the report. In this cursor, add a new column called something like PageBreak. If you want page breaks, fill this field in with the same thing as your normal group (e.g. Customer Number). If you don't want page breaks, leave the field empty for all records.

When designing your report, create two groups. The first one will have an expression of "PageBreak" (or whatever you called the new field). Mark this one as Start on new page. The second group will be your normal group (e.g. Customer Number) and do NOT mark this one as Start on new page.

This should allow one report definition to handle with and without page breaks, depending on whether you filled in the PageBreak field or not.

Hope this helps,
Cathy
Cathy Pountney, Microsoft Visual FoxPro MVP
Memorial Business Systems, Inc. (www.mbs-intl.com)

My Website: (www.frontier2000.com)
My Blog: (www.cathypountney.blogspot.com)
My Book: The Visual FoxPro Report Writer - Pushing it to the Limit and Beyond
Free MSDN Article: What's New in the VFP 9.0 Report Writer
Free MSDN Article: The VFP 9.0 Report Writer In Action
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform