#44106 - 07/08/13 05:10 AM
Overflow Iteration Condition
|
Oliver
Unregistered
|
Hi,
My data file line per page may have n number of lines and through the Design I configured it to have a maximum line of 1000.
I created an Overflow condition (=&iterationcount = 50) and does the trick. But it creates also multiple blank pages. So I assume because I don't have an Overflow Iteration Condition.
Question is how? What I'd like to achieve is "do not overflow if the line per page is < 51"
Thanks.
|
Top
|
|
|
|
#44107 - 07/08/13 11:49 AM
Re: Overflow Iteration Condition
[Re: ]
|
OL Expert
Registered: 11/05/08
Posts: 162
Loc: Denver
|
Try creating these conditions: page1 condition: =¤t.overflowcount=0 overflow page condition: =¤t.overflowcount=1
Then apply those conditions on the appropriate pages. Because I believe any overflow page will be there unless you control it with a condition. Good luck
|
Top
|
|
|
|
#44116 - 07/09/13 05:00 AM
Re: Overflow Iteration Condition
[Re: ]
|
Oliver
Unregistered
|
Hi Dweg,
I found a solution on my first post. That instead of Iteration Condition, I've managed to get using Press Talk the last line of my data page and used that in To Line:
Now my second problem is I have multiple Overflowing Objects. On first page, overflowing works proper but on succeeding pages, overflow object_1 continues to overflow on the overflow object_2.
|
Top
|
|
|
|
#44125 - 07/09/13 02:52 PM
Re: Overflow Iteration Condition
[Re: ]
|
Olivier J
Unregistered
|
Hi Oliver,
The overflow will not work properly using the line repeat feature if you have more than 1 object/group using the overflow condition. You will need to program a PlanetPressTalk runpage to drive what to show where and when, until which detail line. Basically you would keep track of your cursor's vertical position, moving the cursor and calling the object to show a specific range of detail lines, then output the page, reposition your cursor, and show the next set of detail lines...all in PressTalk.
What we call simple overflow using line repeat can only be used if 1 object/group has a condition to exit and overflow.
Thanks. Regards, Olivier
|
Top
|
|
|
|
#44128 - 07/09/13 11:10 PM
Re: Overflow Iteration Condition
[Re: ]
|
Oliver
Unregistered
|
Hi Olivier,
Is there a guide on how to do overflow using PressTalk?
Regards,
Oliver
|
Top
|
|
|
|
#44138 - 07/11/13 03:20 AM
Re: Overflow Iteration Condition
[Re: ]
|
OL Guru
Registered: 07/03/12
Posts: 106
|
too broad a topic for a how to guide.., but i usually break up my paragraphs into lines, which is a task in itself, then do something like:-
if(&physical.y > ¤t.pageheight - &bottomMargin) showpage() margin(1,1) endif()
|
Top
|
|
|
|
#44179 - 07/14/13 03:12 AM
Re: Overflow Iteration Condition
[Re: ]
|
Oliver
Unregistered
|
Hi ppuserd,
Thanks for the info, I've managed to do my overflow by creating PressTalk Object, with the below lines of code.
for(&i,5,1,¤t.lpp) show(@(&i,1,2)) crlf(0.1667) &y:=&y+1 if(&y=20) showpage() endif endfor()
Basically, it cuts on every 20 lines.
One more follow up question. How can I retain/show my Header object(Data Selection and Text) all throughout the Pages?
Regards,
Oliver
|
Top
|
|
|
|
#44184 - 07/15/13 03:21 AM
Re: Overflow Iteration Condition
[Re: ]
|
OL Guru
Registered: 07/03/12
Posts: 106
|
yes, showpage() will wipe everything clean it's true.
assuming you want those objects to be shown at the exact same location every time, you could just use an overlay page. ('add page' -> 'page properties' -> 'basic attributes' -> 'page type')
overlays are handy, you can have multiple overlays assigned to a single page ('page properties' -> 'overlays' -> 'overlays') and show them conditionally ('page properties' -> 'basic attributes' -> 'condition').
|
Top
|
|
|
|
#44273 - 07/18/13 01:03 AM
Re: Overflow Iteration Condition
[Re: ppuserd]
|
Oliver
Unregistered
|
I've tried overlay but it still doesn't show my headers. The headers are placed in the overlay page applied to a normal page. It shows only on normal page but not on the overflow page(showpage()) Do I need to add a presstalk to show my overlay on showpage()?
Regards,
Oliver
|
Top
|
|
|
|
#44279 - 07/18/13 03:41 AM
Re: Overflow Iteration Condition
[Re: ]
|
OL Guru
Registered: 07/03/12
Posts: 106
|
well that's a pity! could have been so easy..
go to the page properties of your output page, and un-tick the overlay option.
do keep your overlay page configured as an overlay though.
what you can then do, is call the overlay page in presstalk like so:-
@overlayPageName()
or, if you need the overlay to be variable, use:-
execpage(&overlayPageNameVariable)
|
Top
|
|
|
|
|
|