1.不分页打印固定空行
在数据区下插入子报表,设置子报表的“最少数据行”。
2.隔行打印空行
在数据区下插入子报表,在页脚添加下面的事件代码。
private void PageFooter1_BeforePrint(object sender, EventArgs e)
{
while (Engine.FreeSpace > Engine.PageFooterHeight + Child1.Height)
{
Engine.ShowBand(Child1);
}
}
3.在最后一页打印空行
(1)进入报表设界面,将“双通道”项打上钩,如下图
(2)在数据区下插入子报表,在页脚添加下面的事件代码。
private void PageFooter1_BeforePrint(object sender, EventArgs e)
{
while (Engine.FreeSpace > Engine.PageFooterHeight + Child1.Height&&Engine.PageNo==Engine.TotalPages)
{
Engine.ShowBand(Child1);
}
}