Current filter:
                                You should refresh the page.
                                Support Center
                                0
                                  • Hi!

                                    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!

                                    Volker

                                0

                                I am attaching my source code with the hope that it will help you pinpoint what I am doing wrong.

                                Attached source code unsuccessfully tries to display 3 dynamically created tables in a report.

                                Thank you for your help!

                                Volker

                                testTables.zip
                                0

                                Hello Volker,

                                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.

                                Thank you,
                                Alex.

                                0

                                Hi Alex,

                                thank you so much for your quick reply. That did the trick!

                                Volker

                                To start a chat you should create a support ticket


                                If you need additional product information, write to us at info@devexpress.com or call us at +1 (818) 844-3383

                                FOLLOW US

                                DevExpress engineers feature-complete Presentation Controls, IDE Productivity Tools, Business Application Frameworks, and Reporting Systems for Visual Studio, along with high-performance HTML JS Mobile Frameworks for developers targeting iOS, Android and Windows Phone. Whether using WPF, Silverlight, ASP.NET, WinForms, HTML5 or Windows 8, DevExpress tools help you build and deliver your best in the shortest time possible.

                                Copyright © 1998-2014 Developer Express Inc.
                                All trademarks or registered trademarks are property of their respective owners