DevExpress Xtra Reports Page Break Not Working

大城市里の小女人 提交于 2019-12-11 12:44:46

问题


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?


回答1:


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

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..

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

Hope this help..



来源:https://stackoverflow.com/questions/10740012/devexpress-xtra-reports-page-break-not-working

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!