
How can I tell in VB if called Crystal report has no data
Have a look at the following property of the crsytal report's ocx.
CrystalReport1.RecordsPrinted
Hope this helps
Duncan
Quote:
> From my Visual Basic program, I produce Crystal reports with passed
> parameters and then email the reports out automatically (within the VB
> program). Crystal produces a report with headings only if there is no
> data. If such a report gets produced, I would like my VB program to be
> able to tell and not email it out. Is there a flag I can check or
> someway for the program to know when Crystal found no data for the
> report?
> Any help would be appreciated. Many thanks in advance.