Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Conditional title page on a report
Message
De
23/10/2001 16:24:26
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
À
23/10/2001 15:20:20
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00572248
Message ID:
00572316
Vues:
36
This message has been marked as a message which has helped to the initial question of the thread.
>I'm trying to print out a title page for a report that only prints when a logical expression is true. Otherwise, no title page prints (and no blank page get's kicked out!).
>
>At first, I tried to modify the report to conditionally print the title page, but I couldn't get the page to break after title text printed (all text contained in single memo field/variable). If I changed the report to page break at design time, it forced a blank title page at runtime (not what the cook intended and defeats the whole purpose). Without the page break at design time, the report started printing at the end of the title text. Adding a variable amount of CR&LF didn't do it either. There is something very strange about the report writer & title page...
>
>Then I have been trying to hack the FRX to add necessary rows to the frx at runtime, but still am not having any success.
>
>Anybody out there find a better solution, (still using the VFP report generator) and/or give me some tips and tricks to solve the problem?

My usual trick (though I haven't done too many Fox reports recently) is to group on anything that fits, and have the group print on a new page. The group expression can be anything, even bof(), eof(), UDF or a report variable. The report variables are specially cute for this sort of manipulation, because they can be manipulated in code called from any band's OnEntry function.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform