You should be able to define the entire page
as a single form with a table control in the middle just
like an online screen.
The table control has 7 columns in it.
If you have less than 9 records the remainder
of the 9 rows will be blank and so any fields outside
the table will print in the same location
If there are more than 9 items then Magic will
automatically start a new page with table continuing
from record 10-19 and so on.
This is a 9.4 question, but I
suspect it's still relevant to newer releases.
I have a form (in this case a Bill of Lading)
which includes a fixed
height table plus lots of fixed text above, to the
right, and below the
In this case, the table consists of up to 9 line
items, each of which
has 7 fields.
Now, I've handled this in the past by putting 63
virtuals on the form,
populating them by scanning a table and doing a
bunch of varsets (in
this case 7) for each of the 9 line items, then
printing the page etc.
It works, but lacks grace and elegance.
An alternative approach is to use 9 RTF edit
controls, and synthesize
one RTF string for each line item. That actually
works quite nicely. I
can mix font sizes and styles, but I'm limited to
fixed-width fonts if I
want the columns to align. (For those who want to
try this, its easiest
to build a test line as a RTF text control, export
the Magic task, and
see what the Magic-acceptable RTF looks like, then
copy and replace)
I was wondering if anybody had found a better