Snap textbox to overflow object

Posted by: Paul L

Snap textbox to overflow object - 06/03/21 09:35 AM

Good morning. I have an issue similar to the issue posted here: https://www.objectiflune.com/forum2/?ubb=showflat&Number=45053.

I have a line repeat object that pulls parcel information from our data. The repeat and overflow works beautifully but we want to add text below the overflow and snap it to the last line.

Right now, when there is no overflow, the textbox snaps properly and grows and shrinks with the amount of lines displayed. When there is overflow the table "expands" to the next page but leaves a huge blank space and pushes the textbox off screen therefore not printing it.

Repeat Mode: Line repeat
From Line: 1
To line: 0
Repeat choice: Vertical only
Iteration condition: =true
Condition to exit and overflow: =&iterationcount >= 35

I've read in previous posts that there may be a checkbox "Do not overflow if last record reached" but I don't see it.

I have set all my snapping points correctly - I know this because the objects snap correctly when there is no overflow.

Any help would be greatly appreciated.

Thanks,
Paul
Posted by: Paul L

Re: Snap textbox to overflow object - 06/03/21 03:39 PM

Hello all,

I was able to answer my own question.

I added a placeholder text box with the "Top" value equal to a global variable "=&gvParagraph1Yposition". The global variable is updated AFTER each repetition of the textbox that is being repeated/overflowed.

Code:
&gvParagraph1Yposition := &physical.y + 0.125


The key here is &physical.y. It shows the placeholder where the last repetition will go.

Then I've simply allowed snapping of all the text that comes after the table. It works beautifully. eek

So now I'm using &physical.y on all the paragraphs that follow so see if they fit on the remaining space on the page. If not then they will be activated on the next page.

Took me a long time to figure out but it works. Hope this post helps anyone out there.

I found the final piece here: https://ollearn.objectiflune.com/login/index.php. Sign up is free!