6.0

Table Of Contents
26
PlanetPress Talk Basics
1
translate(neg(8.5),1.75)
endfor()
% =======================================================
% DOCPAGE CODE: CREATE THE DATA SELECTION
% =======================================================
moveto(0,0)
margin(0.1,0)
setstyle(&header)
show('Supplier district:'+ @(&six,1,30))crlf(0.166)
Notes
• In the runpage code, the outermost for loop loops six times, and positions the copy of the page in one of
the six rows. The innermost for loop loops twice and positions the copy in one of the two columns.
• The translate statement in the runpage code positions the overlay on the print page. Remember that
the translate command sets a new point of origin so each iteration of the loop positions its copy of the
page relative to the point of origin of the last one.
• In the DOCPAGE code, the global variable &six advances the data selection with each iteration of the
outermost loop of the runpage code.
Print a line of text on odd-numbered pages
This sample prints a line of text only on odd-numbered pages. It uses the system integer variable
&current.printpage, and assumes you add a PlanetPress Talk object containing this code to every page
in your document.
Code
% =======================================================
% PRINT A LINE OF TEXT ON ODD-NUMBERED PAGES ONLY
% =======================================================
if(eq(mod(&current.printpage,2),1))
margin(1.5,9.75)
show('See reverse side of this page')
endif()
Notes
• If you use a runpage, you would integrate this code into the runpage code.