Best practice for a complex form

Best practice for a complex form

Forum member · Aug 9, 2006
Hi, I have to build a report (no data entry elements, viewing only) where only the first region is fixed. This region contains only labels. After that 4 to 6 different small tables will follow and each tabel has a different number of rows dependent on the data. The form ends with a formatted text area which length varies too. Question: What is the best practice to know the starting and ending co-ordinates for each "data block"? Should I use a big table with only one column and integrate the small data tables and the text area in the rows/cells of this big table? Or should I store the starting/ending co-ordinates and calculate the starting co-ordinate for the next table manually? If last way is better: how to retrieve the actual position? The whole report may fit into one page or needs about 5 pages. Thanks for some helping thoughts Calle

Re: Best practice for a complex form

Support · Aug 9, 2006
Hello Calle, It will be more efficient to add one table after another instead of adding one main table and adding sub tables to it because you can manage the overflow records for individual table very easily and you can find the coordinates of the table where the table has ended without any problem. You define the starting point for the first table and then can get the table height with the help of GetRequiredHeight method of the table object. In order to start the new table, add some padding to the Y coordinare and start new table from there. You can do this by taking a main table and you can add sub tables to the cells of the main table, but it may get complicated to manage the overflow of tables. Thanks, ceTe Software Support Team