Hi Jai Veena,
You can try like this ...
make use of Text Elements / Counters based upon u'r logic
loop
-> within the loop, print a box using Box statement with height such that only it can display 1 record within it's height.
-> Print the record to be displayed
endloop.
This should help in printing Box lines dynamically.
Thanks
Vivek