How to print 'To be continue' for all page except the last page
I have a field "invoice total" (tdbtext) placed in page style. And I want
to print it as
'To be continue' for all page except the last page
If the field value is 100
For example
page 1 : ' To be continue'
page 2 : ' To be continue'
page 3 : 100
As it may work like this : add two tppsystemvariable, pageno and pagecount
and set it as two-pass.
In pagestyle.beforeprint :
Firstly, save the value to a variable
and check the pageno and pagecount
if equal , print the value
if not, print ' to be continue'
But I think it is not a good ways.
How to do it in a good way ?
to print it as
'To be continue' for all page except the last page
If the field value is 100
For example
page 1 : ' To be continue'
page 2 : ' To be continue'
page 3 : 100
As it may work like this : add two tppsystemvariable, pageno and pagecount
and set it as two-pass.
In pagestyle.beforeprint :
Firstly, save the value to a variable
and check the pageno and pagecount
if equal , print the value
if not, print ' to be continue'
But I think it is not a good ways.
How to do it in a good way ?
This discussion has been closed.
Comments
Continued... for overflowing detail data. You'll need to use a twopass
report such that the first pass will get the page count and you can
determine when to display the 'To be continued' label in the second pass by
simply checking the Report.AbsolutePageNo equals Report.AbsolutePageCount
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com