报表如何实现中间为数据行的按组分页?

imagepng

如题,A 列是不展示行,sql 检索为:select waybill_no,goods_name_from_spec,batch,qty from 单据表,如何实现根据 waybill_no 分组,实现数据在报表中间展开并分页?