本文介绍了DevExpress的 - xtrareport - 分页符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有300多行的数据表。
我想每个页面中它目前只有10行。
我想强制xtrareport后10行打破。

I have a datatable with more than 300 rows. I want each page to present only 10 rows in it.I want to force the xtrareport to break after 10 rows.

这是如何做到这一点任何想法?

Any idea on how this is done ?

推荐答案

可以强制在一定条件下分页符。 的底部都有一个例子。

You can force a page break on certain conditions. This page has an example at the bottom.

卡里

要完成这个任务,你可以添加一个组页脚带,并设置组页脚。分页符来AfterBand。 或放XRPageBreak控制,处理Detail.BeforePrint,并根据需要调整XRPageBreak的知名度。
为了得到处理的行,你需要使用XtraReport.GetCurrentRow()方法。
请尝试此解决方案,并让我们知道结果。

To accomplish this task you can either add a GroupFooter band and set the GroupFooter.PageBreak to AfterBand. or put a XRPageBreak control, handle the Detail.BeforePrint and adjust the visibility of the XRPageBreak as you need. To get processing row you need to use the XtraReport.GetCurrentRow() method. Please try this solution, and let us know the results.

谢谢,结果
安德鲁

Thanks,
Andrew

这篇关于DevExpress的 - xtrareport - 分页符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-12 16:35