Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Report Heading w/ no detail lines
Message
De
04/09/2002 18:49:06
 
 
À
04/09/2002 17:46:13
Randy Riegel
Zimish Contracting
Ohio, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00696865
Message ID:
00696897
Vues:
14
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.
Jim Newsom
IT Director, ICG Inc.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform