Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to print title when no records to report
Message
De
26/01/2007 05:12:53
 
 
À
25/01/2007 22:04:41
Alan Harris-Reid
Baseline Data Services
Devon, Royaume Uni
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01189447
Message ID:
01189496
Vues:
8
Alan

I assume you want to let the user know that there are no recs to print - hence blank report. To save wasting paper, once the print file has been generated (presumably from, say, and SQL statement), you could check whether the cursor is empty (using _TALLY) and if _Tally = 0 display a message that there's nowt to print.

Terry

>Using VFP8, I have a single-cursor-based report form with which I would still like to print-out the title-band even if there are no records in the cursor (normally if there are no records the report is not generated). Short of creating a dummy record to ensure the title is printed, is there a neater way of trying to achieve my goal?
>
>Any help would be appreciated.
>
>Alan
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform