DevEx preSS的Xtra报告分页符不工作 [英] DevExpress Xtra Reports Page Break Not Working

查看:744
本文介绍了DevEx preSS的Xtra报告分页符不工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在一个项目,在那里我生成动态使用开发​​EX preSS西装XTRA报告图表,和我没有bidning图形到数据源。当我使用数据源来生产标签,以测试他们的

Working on a project, where I generate graphs dynamically using xtra reports of the dev express suit, and am not bidning the graph to a data source. When I use a datasource to produce labels to test them out, the

Detail.PageBreak = DevExpress.XtraReports.UI.PageBreak.AfterBand;

工作。但是,如果我生成的标签,没有一个数据源,这是行不通的。有没有人有一个线索?

works. But if I am generating the labels without a data source, this doesn't work. Does anyone have a clue?

推荐答案

来源:强制有条件的分页符当一个标签文本值改变

Source:forcing a conditional page break when a label text changes value

要完成这个任务,你可以添加一个组页脚带,并设置GroupFooter.PageBreak为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.

您可以强制在一定条件下分页符。参考链接有一个例子在底部作为附件。

You can force a page break on certain conditions. Reference link has an example at the bottom as attachment..

您也可以使用Before_Print事件来完成这个任务。

You can also use the Before_Print event to accomplish this task.

希望这有助于..

这篇关于DevEx preSS的Xtra报告分页符不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆