i Sivanadh,
That's exactly what I did, i'm controling the change of page using the maximum lines per table and per page. It seems it woks.
But now I have another problem... After printing both tables I need to print an extra page with some fix data. When I have only one page the last page is printed correctly. When I have more than one page I'm not able to print it.
what I did is:
Page 1:
I have 2 windows, positions (1st table) and discounts (2nd table) where I do the loop to the tables.
Whenever I print the entries required for each table, I delete these rows.
At the end of this page 1 have a MAIN window with an alternative:
- IF positions[] is not initial or discounts[] is not initial -> goto page NEXT (similar to page 1)
- ELSE -> goto page LAST.
In page LAST I have a NON-MAIN window where I print the data I need.
Any idea of what I'm doing wrong ?
Thanks !!!
María