dynamically add page breakt

dynamically add page breakt

Forum member · Nov 3, 2009
Hello, I have a report with a data list, cfr. an invoice. But every item has two parameters: addpagebreakbefore and addpagebreakafter. If one or two of those is set to true, a pagebreak should be added before and/or after the item, depending which of them is true. Can this be done programmatically ? We are using this configuration: * dplx-files for the page structure * aspx (C#) files for the document generation I guess we should do something with LaidOut events, but what code should be used to add the pagebreak ?

Re: dynamically add page breakt

Support · Nov 3, 2009
Currently there is not a way to accomplish this kind of functionality within the ReportWriter v5 API. The thing is that the Page Breaks that can be added to Designer cannot be conditional (as you are after). Honestly, I know that this is a feature that we will likely have within ReportWriter in a future version release but I just have no way of knowing exactly when that might be. For now it is just not possible. Thanks, ceTe Software Support Team