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:
select myreport
thisform.nRecsToPrint = RECCOUNT()
if empty(thisform.nRecsToPrint)
create cursor myfakereport( fld1 c(10) )
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.