IMPORTANT ANNOUNCEMENT

These forums were permanently set to read-only mode on July 20, 2022. From that day onwards, no new posting or comment is allowed on the site, but the historical content remains intact and searchable.

A new location for posting questions about PlanetPress Suite is now available:

OL Learn - PlanetPress Classic (opens in new tab)

Topic Options
#43738 - 06/06/13 06:38 AM Ability to 'Step' In A Repeat
Rob Atkinson Offline
OL User

Registered: 11/20/12
Posts: 66
Loc: UK
As far as I know, there's no in-built method of doing a repeat on a block of text, as opposed to a single line.

For instance, I have text in a file that makes up 8x2 label sheets. I extract a single block of text for the first label, and then use a repeat to extract and display the other 15 labels.

In order to move the Planet Press 'cursor' to the correct line of data, I use these 2 lines in PressTalk :-

Presstalk Before:
set(&current.line, &current.line + 1)

Presstalk After:
set(&current.line, &current.line + 8)


What I'd like is a new field on Repeat called 'Step' which would effectively do the same as the code above. If I set the field to 8, it will jump 8 lines of data each time the repeat loops.

Cheers, Rob.


Edited by Rob Atkinson (06/06/13 06:39 AM)

Top
#43751 - 06/06/13 05:22 PM Re: Ability to 'Step' In A Repeat [Re: Rob Atkinson]
Philippe F. Offline
OL Expert

Registered: 09/06/00
Posts: 1984
Loc: Objectif Lune, Montreal, Qc
Personally, I would do the following:

Set the data file's Lines Per Page to 8. So each data page contains just the right amount of data for a single label.

Then, create a virtual page with a custom size that matches that of the labels to produce. Add a Data Selection object on that page with all the data from the Data Page.

Finally, back on the main - physical - page, add a nUp Printing object, set to use the Virtual Page created above. Set the number of horizontal/vertical copies to 2X8 and make sure the option to Change Data Page With Each Repeat is ticked.

This makes maintenance and formatting much easier, in my mind.
_________________________
Technical Product Manager
I don't want to achieve immortality through my work; I want to achieve immortality through not dying - Woody Allen

Top
#43753 - 06/07/13 04:41 AM Re: Ability to 'Step' In A Repeat [Re: Rob Atkinson]
Rob Atkinson Offline
OL User

Registered: 11/20/12
Posts: 66
Loc: UK
Thanks Philippe, looks good to me. I think the 'Step' approach would be more elegant, but happy to go with this solution.

Cheers, Rob.

Top