Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Report Heading w/ no detail lines
Message
De
05/09/2002 08:57:10
Randy Riegel
Zimish Contracting
Ohio, États-Unis
 
 
À
04/09/2002 18:49:06
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00696865
Message ID:
00697015
Vues:
22
Thanks, that's similar to how I'm doing it now, using RECCOUNT(). I was just wondering if there was a simpler way.

>Hi Randy,
>
>I don't know if you have a similar situation, but I had to do this in order to print a page that showed there was nothing to print. On a verification-type report of ours, which prints exceptions meeting certain criteria, we wanted one page to spit out that indicated nothing met those conditions, with a label saying, 'Verification Successful'.
>
>I accomplished this by doing a RECCOUNT() on the result set I was about to print, before doing the REPORT FORM command. something like:
>
>&& do report query or whatever up here
>select myreport
>thisform.nRecsToPrint = RECCOUNT()
>if empty(thisform.nRecsToPrint)
>create cursor myfakereport( fld1 c(10) ) && create identical structure here
>select myfakereport
>append blank
>REPORT FORM blah noconsole to printer prompt
>else
>select myreport
>REPORT FORM blah noconsole to printer prompt
>endif
>
>
>
>
>If the result set was empty, I made a one-record, blank cursor of the same structure, and selected it to print from. On the report itself, I had a label as descriobed above in the summary band, with a 'print-when' expression
>
>>How can you make the headings of a report print even if there are no records to process (no detail lines). Right now it prints a blank page.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform