AcceptPageBreak
set gcol 0;
proc SetCol { col } {
global gcol;
# Move position to a column
set gcol $col;
set x [expr 10+ $col*65];
SetLeftMargin $x;
SetX $x;
}
proc AcceptPageBreak { } {
global gcol;
if {$gcol <2) {
#Go to next column
SetCol [expr $gcol +1];
SetY 10 ;
return 0;
} else {
#Go back to first column and issue page break
SetCol 0;
return 1;
}
}
}
AddPage;
SetFont Arial "" 12;
for { set i 1 } {$i<=300} { incr i} {
Cell 0 5 "Line $i" 0 1;
}
Output;