I have smartform with 3 pages .
FIRST, REPEAT and LAST
FIRST page print only once.
REPEAT page print the main window so it will be printed as many time as need to finish main windows.
and the LAST page which I only want to print for specific condition.
so if that condition is false then only FIRST and REPEAT
page will print
and If that condition is true then
FIRST-> REPEAT -> REPEAT -> REPEAT.... -> LAST pages sould be printed.
How to achieve this functionality. Do I need to set the next page property of REPEAT window at run time. How to do so?