Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Conditional title page on a report
Message
De
23/10/2001 16:40:41
 
 
À
23/10/2001 15:35:22
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00572248
Message ID:
00572322
Vues:
24
>Crescencio,
> That would be a logical solution, but one that would make the creation of single PDF and HTML or text files more problematic. That's why I already rejected that solution.
>
>Thanks for the reply. It would certainly solve the problem if I only wanted to print the report to printer.
>
>>>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!).
>>>

I think there might be a way of doing this by hacking the frx. The trick would be to create a temporary report each time from your original with or without the title depending on the external logical condition. It seems like the entry for the title band has OBJTYPE=9 and OBJCODE=0 and the pagebreak field would have a .T. if you require a page break. The title contents has OBJTYPE=5 and OBJCODE=0, although you would need to further identify it because header and footer have the same codes.

You can find more info about the frx table structure under the filespec directory of your VFP installation (you probably have already been there if you considered hacking the frx).
Hope this helps.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform