Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Conditionally page break a report
Message
De
28/01/2013 14:23:53
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Database:
Visual FoxPro
Divers
Thread ID:
01564361
Message ID:
01564384
Vues:
48
>Whats the trick to conditionally page break a foxpro report (using foxpro data) without having to write another FRX that has the page break / grouping set? I want to let the user have the option to page break on a field without having 2 FRXs. Thanks.

You could "hack" the FRX (i.e. open as DBF, then change some fields).
1. Open FRX file as DBF
2. Look for OBJTYPE = 9 and OBJCODE = 3 and EXPR containing field expression for grouping
3. Repalce the PAGEBREAK value
4. Close FRX file

the FRX should:
* already have grouping by selected field (obviously)
* be made external to the APP/EXE (i.e. set as excluded in project -- or you copy FRX/FRT to external file [with different filename], then use copy ).
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform