I'm trying to add a panel programatically to a report. I have a class that programattically generates a bunch of controls, then puts them in a panel, then returns the panel as an array of ReportItemBase with length of 1.
When i do this it appears to put a page break in after each panel.
I've tried altering the class to return just the controls without the panel parent and it works fine.
This is a problem though, because the reason I'm using a panel to put them inside of, is that I need each set of controls to make sure they are on the same page.
Here's the method
I've got commented out code line around where i've changed things to make it work. I've also tried two methods to add the controls to the panel, one is using the parent property and the other using the items.addrange, both work, but both cause the page break after each panel.
It's used like this in the VB code else where:
Where detail is the details section of the report.
I am using verison 184.108.40.2063 of the Telerik.Report.dll