Cancel printing when a report does not contain any records

Perform this procedure to cancel printing for a report that does not contain any records.

Set the Detail band's Print when Data Source is Empty property to No.
You can quickly perform step this with the band's Smart tag.
Cancel printing