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
#20865 - 01/04/08 04:24 AM question concerning page break
Elmo2k Offline
Junior Member

Registered: 02/22/07
Posts: 8
Loc: Germany
Hello,

is it possible to do a page break when a defined string appears?

Example:
When I get --pagebreak-- in the raw data I want to do a page break.

Thank you.

Kind regards,
s.heinlein

Top
#20866 - 01/04/08 09:59 AM Re: question concerning page break
Anonymous
Unregistered


Hi,

you can try this.

In PlanetPress Design,

- Double click on the Data Pane

- In the Data Selector, choose Emulation: User Defined

- Click on the Use PlanetPress Talk Editor button

- Delete all the code lines that are in the right pane

- Copy and paste theses code lines in the Planet Press Talk editor pane:

Code:
 if((pos('--pagebreak--',&str)>0) and (&current.line>1))

     doform()

  clearpage()

endif()

set(&current.line,&current.line + 1)

store(&current.line,&str)

if(ge(&current.line,&current.lpp))

  doform()

  clearpage()

endif()

 
Hope this helps

Top


Moderator:  cosimo, OL Newsgroup Support