Skip to Content
0
Former Member
May 07, 2008 at 12:41 PM

Page protecting entire table

35 Views

Hi im facing a problem

I need to display two tables, one after the other.

table 1 contains items.. so can continue over many pages,

table 2 is small and can fit in around half a page.

The requirement is that.. if the 1st table data ends with having enough space for table 2 to show, table 2 will come up in the same page. else it will come up in the next page.

Table 2 doesnt have a fixed starting point.

It starts right after table 1 ends.

my code is working fine if there is enough space in a page to display table 2. but if there is not, its showing a runtime error... 'page break is allowed only in main window',

both my tables are in the main window.