from Kathy's Book:
How do I print “continued”?
Whenever Data Groups are involved in a report, you run the risk of having a Data Group span
across two or more pages. Sometimes, this can be confusing to someone reading the report,
especially if the Group Header is repeated on each page. When looking at the second page of
a Data Group, the reader might not realize that it’s continued from the previous page. So
because you’re such a conscientious developer, you’d like to provide the reader with a signal
that the report is continued from the previous page. Heck, you even want a signal at the
bottom of the first page when a Data Group is about to continue on the next page—being the
conscientious developer that you are.
Print “continued” at the top of the page
The first part, signaling when a Data Group is continued from a previous page, is quite easy to
do. Create a Report Variable called nGrpLines, set the Calculate option to Count, and change
the Reset at value to the Data Group. Next, add a Field object to the Group Header band with
the following expression.
IIF(nGrpLines = 0, '', ' ...continued from previous page')
The final step is to check the “Reprint Group Header on each page” check box in the
Data Grouping dialog. That’s it! Run the report and you’ll see “continued” at the top of
each continued page as shown in Figure 3. The report definition to produce this sample
is included in the source code available with this book, and is called Continued.FRX.
Figure 3. Use a Report Variable to easily print “continued”, at the top of a page.
You may be wondering why I used a Field object with an IIF() function instead of a Label
object with
>Hi All:
>
>In the report header, I want to say 'Continued' if it goes for more than one page. My method of doing this is not working.
>
>This is what I'm doing:
>
>In the program that issues the REPORT command, I say:
>
>
>llReportCont = .f.
>
>
>In the Group Header I say:
>
>
>'Section' + SectionCode + iif(llReportCont, ' (Continued)', "")
>
>
>Then in the group header, the 'Upon Exit' I say:
>
>
>llReportCont = .t.
>
>
>And finally in the Report footer in the 'Upon Entry' (doesn't really matter which):
>
>llReportCont = .f.
>
>
>This is not working. What is wrong?
>
>Thanks,
>
>Yossi
Peter Cortiel