Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
'Continued' in the header
Message
De
02/01/2015 11:59:08
 
 
À
29/12/2014 12:38:56
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01612786
Message ID:
01612973
Vues:
122
J'aime (1)
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform