To cancel printing when a report does not contain any records, simply set the Detailband's Print when Data Source is Emptyproperty to No.
You can quickly perform this via the band's Smart Tag.