Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Group to start from a new page or NOT ?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00828907
Message ID:
00829067
Vues:
24
You can do this with a few cool tricks!! Let's assume your report has a data group on CUSTID. What you need to do is create two Data Groups .. the first one has the following expression and is marked to start on a new page:
EVALUATE(pcGroupExpr)
The second data group has CUSTID as the expression and it is NOT marked to start on a new page.

In your program that calls the report use the following code:
PRIVATE pcGroupExpr
IF <You want page breaks>
  pcGroupExpr = 'CUSTID'
ELSE
  pcGroupExpr = '""'
ENDIF

REPORT FORM MyReport TO PRINTER PROMPT PREVIEW
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform