I have a data set that contains multiple tables that is generated at runtime. From that data set, I need to dynamically create a report that contains multiple tables. The tables may have a different layout (e.g. column number) and may spread over multiple pages, therefore I would like to repeat a table header for a certain table on all pages that contain that table.
I looked at your example on how to create a table dynamically but I cannot get it to work with multiple tables. Do you have sample code that shows how to do that?
Your help is much appreciated!
Thanks for posting the sample project. I see the problem.
Since you generate the report at runtime, you should be aware that the DetailReport band isn't automatically expanding, depending on the current XRTable size.
So, you should update the addTable method as follows:
Detail1.Height = tableDetail.Height; // use the XRTable.Height (was: Detail1.Height = 20)
Also, you can display your report contents via DetailReport bands in bound mode. For a reference, see this KB article: How to display the number of data tables in a single report document.